@Test
public void testNewDate() {

    Date now = factory.newDate();
    DateTime result = new DateTime(now.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));
}