@Test
public void testThatGetCurrentViolatorsReturnsAMapOfIpAddressToMetaData() {

    when(config.getRequestPerIntervalLimit()).thenReturn(2);
    Map<String, Integer> map = Maps.newHashMap();
    map.put("108.171.135.164", 10);
    map.put("108.171.135.160", 1);
    Map<String, ViolationMetaData> violators = processor.getCurrentViolators(map, config);
    assertTrue("The map should have one violator", violators.size() == 1);
    assertTrue("The map should should contain 108.171.135.164", violators.containsKey("108.171.135.164"));
    assertTrue(violators.get("108.171.135.164").getMaxRate() == 10);
}