public static Date addTimeToDate( Date input, String time, String dateFormat ) throws Exception {
    if ( Utils.isEmpty( time ) ) {
      return input;
    }
    if ( input == null ) {
      return null;
    }
    String dateformatString = NVL( dateFormat, "HH:mm:ss" );
    int t = decodeTime( time, dateformatString );
    return new Date( input.getTime() + t );
  }
@Test
  public void testAddTimeToDate() throws Exception {
    final Date date = new Date( 1447252914241L );
    assertNull( Const.addTimeToDate( null, null, null ) );
    assertEquals( date, Const.addTimeToDate( date, null, null ) );
    assertEquals( 1447256637241L, Const.addTimeToDate( date, "01:02:03", "HH:mm:ss" ).getTime() );
  }