@Test
public void testGetCurrentDateMidnight() {

    DateTimeService dateTimeService = new DateTimeService();
    DateTime dateTime = dateTimeService.getCurrentDateTime();
    dateTimeService.setCurrentDateTimeFixed(dateTime);
    DateMidnight dateMidnight = dateTimeService.getCurrentDateMidnight();
    Assert.assertEquals("DateMidnight portions should be equal",
            dateTime.toDateMidnight(), dateMidnight);
}