@Test
public void populateSomeTimeDimensions() {
final Builder<Object> existingTimeDimensionBuilder = ImmutableList.builder();
TimeDimension td = mock(TimeDimension.class);
when(td.getTime()).thenReturn(new LocalTime(0, 1));
existingTimeDimensionBuilder.add(td);
final List<TimeDimension> existingTimeDimensions = ImmutableList.of(
createMockTimeDimension(new LocalTime(0, 1)),
createMockTimeDimension(new LocalTime(0, 2)),
createMockTimeDimension(new LocalTime(0, 3)),
createMockTimeDimension(new LocalTime(0, 4)),
createMockTimeDimension(new LocalTime(0, 7)),
createMockTimeDimension(new LocalTime(0, 8)),
createMockTimeDimension(new LocalTime(0, 9)),
createMockTimeDimension(new LocalTime(1, 23)),
createMockTimeDimension(new LocalTime(23, 58))
);
when(timeDimensionDao.getTimeDimensions()).thenReturn(existingTimeDimensions);
this.portalEventDimensionPopulator.doPopulateTimeDimensions();