@Test
public void testStore() throws Exception {

    HashMap<String, Object> data = new HashMap<>();
    data.put("foo", "bar");
    data.put("myint", 28);
    data.put("myfloat", 2.5);
    data.put("mylong", 100L);
    data.put("mypojo", new MyPojo("pojo"));
    Event event = new Event("topic", data);
    alertingService.store(event);
    List<Alert> alerts = alertingService.list();
    Assert.assertEquals(1, alerts.size());
    Alert alert = alerts.get(0);
    Assert.assertEquals("bar", alert.get("foo"));
    Assert.assertEquals(28, alert.get("myint"));
    Assert.assertEquals(2.5, alert.get("myfloat"));
    Assert.assertEquals(100L, alert.get("mylong"));
    Assert.assertEquals("pojo", alert.get("mypojo"));
    Assert.assertEquals("topic", alert.get("event.topics"));
    Assert.assertNotNull(alert.get("alertTimestamp"));
}