@Test
public void testNewSqlDate() {

    java.sql.Date now = factory.newSqlDate();
    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(0));
    assertThat(result.getMinuteOfHour(), is(0));
    assertThat(result.getSecondOfMinute(), is(0));
    assertThat(result.getMillisOfSecond(), is(0));
}