static void setEntryValue( StepInjectionMetaEntry entry, RowMetaAndData row, SourceStepField source )
    throws KettleValueException {
    // A standard attribute, a single row of data...
    //
    Object value = null;
    switch ( entry.getValueType() ) {
      case ValueMetaInterface.TYPE_STRING:
        value = row.getString( source.getField(), null );
        break;
      case ValueMetaInterface.TYPE_BOOLEAN:
        value = row.getBoolean( source.getField(), false );
        break;
      case ValueMetaInterface.TYPE_INTEGER:
        value = row.getInteger( source.getField(), 0L );
        break;
      case ValueMetaInterface.TYPE_NUMBER:
        value = row.getNumber( source.getField(), 0.0D );
        break;
      case ValueMetaInterface.TYPE_DATE:
        value = row.getDate( source.getField(), null );
        break;
      case ValueMetaInterface.TYPE_BIGNUMBER:
        value = row.getBigNumber( source.getField(), null );
        break;
      default:
        break;
    }
    entry.setValue( value );
  }
@Test
  public void setEntryValue_boolean() throws KettleValueException {
    StepInjectionMetaEntry entry = mock( StepInjectionMetaEntry.class );
    doReturn( ValueMetaInterface.TYPE_BOOLEAN ).when( entry ).getValueType();
    RowMetaAndData row = createRowMetaAndData( new ValueMetaBoolean( TEST_FIELD ), true );
    SourceStepField sourceField = new SourceStepField( TEST_SOURCE_STEP_NAME, TEST_FIELD );

    MetaInject.setEntryValue( entry, row, sourceField );

    verify( entry ).setValue( true );
  }