@Test
public void testNewTime() {

    Time now = factory.newTime();
    DateTime result = new DateTime(now.getTime());
    assertThat(result.getYear(), is(1970));
    assertThat(result.getMonthOfYear(), is(1));
    assertThat(result.getDayOfMonth(), is(1));
    assertThat(result.getHourOfDay(), is(23));
    assertThat(result.getMinuteOfHour(), is(7));
    assertThat(result.getSecondOfMinute(), is(11));
    assertThat(result.getMillisOfSecond(), is(100));
}