protected Timestamp convertNumberToTimestamp( Double d ) {
    if ( d == null ) {
      return null;
    }

    return convertIntegerToTimestamp( d.longValue() );
  }
@Test
  public void testConvertNumberToTimestamp_Nanoseconds() throws KettleValueException {
    System.setProperty( Const.KETTLE_TIMESTAMP_NUMBER_CONVERSION_MODE,
      Const.KETTLE_TIMESTAMP_NUMBER_CONVERSION_MODE_NANOSECONDS );
    ValueMetaTimestamp valueMetaTimestamp = new ValueMetaTimestamp();
    Timestamp result = valueMetaTimestamp.convertNumberToTimestamp( TIMESTAMP_AS_NANOSECONDS_DOUBLE );
    assertEquals( TIMESTAMP_WITH_NANOSECONDS_DOUBLE, result );
  }