@Test
public void testFillError() {

    Map<String, Object> error = new HashMap<String, Object>();
    listener.fillError(error, 123, "test message");
    Assert.assertEquals(123, error.get("code"));
    Assert.assertEquals("test message", error.get("message"));
}