@Test
public void testThatFilterAndTruncateViolatorsDoesNotRemoveNonExpiredBlocks() {

    when(config.getBlacklistDurationInMinutes()).thenReturn(1);
    RangeSet<Integer> rangeSet = TreeRangeSet.create();
    Map<String, ViolationMetaData> violators = new HashMap<>();
    violators.put("50.39.100.193", new ViolationMetaData(new Date(), 2));
    Map<String, ViolationMetaData> actual = processor.filterAndTruncateViolators(config, rangeSet, violators);
    assertTrue("The violators map should still have one entry after filtering", actual.size() == 1);
}