@Test
public void testCreateError() {

    Map<String, Object> dictionary = listener.createError(123, "test message");
    Assert.assertEquals(2, dictionary.size());
    Assert.assertEquals(123, dictionary.get("code"));
    Assert.assertEquals("test message", dictionary.get("message"));
}