@Test
public void testThatGetCurrentViolatorsReturnsAMapOfIpAddressToMetaDataAndContainsTheHighestRate() {

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