@Test
public void testGetAllMessageTypes() 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<MessageSummary> result = underTest.getAllMessageSummaries(startTimeStr, endTimeStr,
                                                                   null, null, null, null);
    assertEquals(sums.size(), result.size());
    Set<MessageSummary> resultMessageSummarySet = Sets.newHashSet(result);
    for (MessageSummary expectedMessageSummary : sums) {
        assertTrue(resultMessageSummarySet.contains(expectedMessageSummary));
    }
    result = underTest.getAllMessageSummaries(startTimeStr, endTimeStr, null, null,
                                              BOT_MESSAGE.toString(), null);
    assertEquals(1, result.size());
    assertEquals(BOT_MESSAGE, result.get(0).getValue());
}