public Timestamp convertDateToTimestamp( Date date ) throws KettleValueException {
    if ( date == null ) {
      return null;
    }
    Timestamp result = null;
    if ( date instanceof Timestamp ) {
      result = (Timestamp) date;
    } else {
      result = new Timestamp( date.getTime() );
    }
    return result;
  }
@Test
  public void testConvertDateToTimestamp_Null() throws KettleValueException {
    ValueMetaTimestamp valueMetaTimestamp = new ValueMetaTimestamp();
    assertNull( valueMetaTimestamp.convertDateToTimestamp( null ) );
  }