@Test
public void registerListener() {

    registry.registerListener("test", (event, payload) -> {
        call = true;
        System.out.println("setting call true");
    }, true);
    assertTrue(registry.getRegisteredListeners().containsKey("test"));
}