@Test
public void newRegisteredListener() {

    ListenerRegistry.RegisteredListener<String, Integer> test = ListenerRegistries.newRegisteredListener("test", 2);
    assertEquals("test", test.getIdentifier());
    assertEquals(Integer.valueOf(2), test.getListener());
}