@Test
public void testThatGetCurrentlyBlockedIpsAndDateViolatedMapCanProperlyDeserialize() {

    String json = "{\"192.168.0.1\":{\"date\":1476224112155,\"maxRate\":10}}";
    S3Object object = new S3Object();
    object.setObjectContent(new ByteArrayInputStream(json.getBytes()));
    when(amazonS3.getObject(isA(GetObjectRequest.class))).thenReturn(object);
    Map<String, ViolationMetaData> map = processor.getCurrentlyBlockedIpsAndDateViolatedMap(FAKE_BUCKET_NAME);
    assertTrue("The map should have one element", map.size() == 1);
}