@Test
 public void shouldReturnMaxDate() {
   DateAxisBoundCounter dateAxisBoundCounter = new DateAxisBoundCounter();
   ThreadCountEntity first = createEntityFromDate(new Date(new Date().getTime() - 2));
   ThreadCountEntity second = createEntityFromDate(new Date());
   Date result = dateAxisBoundCounter.getMaxDate(Arrays.asList(first, second));
   assertEquals(result, second.getTime());
 }
 @Test
 public void shouldReturnDefaultMaxDateWhenListIsNull() {
   DateAxisBoundCounter dateAxisBoundCounter = new DateAxisBoundCounter(mockDate);
   Date result = dateAxisBoundCounter.getMaxDate(null);
   assertEquals(result, mockDate);
 }
 @Test
 public void shouldReturnDefaultMaxDateWhenListIsEmpty() {
   DateAxisBoundCounter dateAxisBoundCounter = new DateAxisBoundCounter(mockDate);
   Date result = dateAxisBoundCounter.getMaxDate(new ArrayList<ThreadCountEntity>());
   assertEquals(result, mockDate);
 }