### Question:
HermesAbstractApiListener extends HttpRequestAdaptor { public void fillError(Map<String, Object> error, int code, String message) { error.put("code", new Integer(code)); error.put("message", message); } HermesAbstractApiListener(); void fillError(Map<String, Object> error, int code, String message); Map<String, Object> createError(int code, String message); Map<String, Object> createActionResult(String id, boolean success); String processRequest(HttpServletRequest request, HttpServletResponse response); String getStringFromInput(Map<String, Object> inputDict, String key, Map<String, Object> error); Long getLongFromInput(Map<String, Object> inputDict, String key, Map<String, Object> error); String getOptionalStringFromInput(Map<String, Object> inputDict, String key, String defaultValue, Map<String, Object> error); Long getOptionalLongFromInput(Map<String, Object> inputDict, String key, long defaultValue, Map<String, Object> error); Boolean getOptionalBooleanFromInput(Map<String, Object> inputDict, String key, boolean defaultValue, Map<String, Object> error);  }### Answer:
@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")); }