@Test
public void testIncorrectAnnotation() {

    Event e = new Event(1L, 32, "test",
                        new LakeEvent(199), 11L); // dpid cannot be int
    assertTrue(e.getFormattedEvent(LakeEvent.class, "test").getDataFields()
      .contains(new Metadata("Error",
                         "java.lang.Integer cannot be cast to org.projectfloodlight.openflow.types.DatapathId")));
    Event e2 = new Event(1L, 32, "test",
                        new LakeEvent2(199), 12L); // mac cannot be int
    assertTrue(e2.getFormattedEvent(LakeEvent2.class, "test").getDataFields()
               .contains(new Metadata("Error",
                                  "java.lang.Integer cannot be cast to java.lang.Long")));
}