@Test
public void testGetAllEntities() throws Exception {

    DateTimeFormatter dtf = DateTimeUtils.PARAMETER_WITH_DAY_DTF.withZone(dtZone);
    String startTimeStr = dtf.print(mentionTime.minusDays(1));
    String endTimeStr = dtf.print(mentionTime.plusDays(1));
    List<ChatEntity> result = underTest.getAllEntites(startTimeStr, endTimeStr, null, null,
                                                      null);
    assertEquals(entities.size(), result.size());
    Set<ChatEntity> resultEntitySet = Sets.newHashSet(result);
    for (ChatEntity expectedEntity : entities) {
        assertTrue(resultEntitySet.contains(expectedEntity));
    }
}