@Test
public void testGetTotalMessageSummaries() {

    DateTimeFormatter dtf = DateTimeUtils.PARAMETER_WITH_DAY_DTF.withZone(dtZone);
    String startTimeStr = dtf.print(mentionTime.minusDays(1));
    String endTimeStr = dtf.print(mentionTime.plusDays(1));
    int result = underTest.getTotalMessageSummaries(startTimeStr, endTimeStr, null, null, null,
                                                    null);
    assertEquals(sums.size(), result);
    result = underTest.getTotalMessageSummaries(startTimeStr, endTimeStr,
                                                ImmutableList.of("u1"), null, null, null);
    assertEquals(1, result);
    result = underTest.getTotalMessageSummaries(startTimeStr, endTimeStr, null,
                                                ImmutableList.of("r1"), null, null);
    assertEquals(3, result);
    result = underTest.getTotalMessageSummaries(startTimeStr, endTimeStr, null, null,
                                                MESSAGE.toString(), null);
    assertEquals(2, result);
}