@Test
public void testConvertToTimestamp01() {

    // setup a test data
    DateTime date = new DateTime(2012, 9, 3, 23, 7, 11, 100);
    // testing
    Timestamp timestamp = DateConvertUtils.convertToTimestamp(date
            .toDate());
    // assertions
    DateTime result = new DateTime(timestamp.getTime());
    assertThat(result.getYear(), is(2012));
    assertThat(result.getMonthOfYear(), is(9));
    assertThat(result.getDayOfMonth(), is(3));
    assertThat(result.getHourOfDay(), is(23));
    assertThat(result.getMinuteOfHour(), is(7));
    assertThat(result.getSecondOfMinute(), is(11));
    assertThat(result.getMillisOfSecond(), is(100));
}