HermesApiListener extends HermesAbstractApiListener { protected Map<String, Object> createStatusObject() { HashMap<String, Object> dict = new HashMap<String, Object>(); dict.put("status", Constants.HEALTHY); fillDate(dict); return dict; }    }
@Test public void testCreateStatusObject() { HermesApiListener listener = new HermesApiListener(); Map<String, Object> statusObj = listener.createStatusObject(); Assert.assertEquals(true, statusObj.containsKey("status")); Assert.assertEquals(true, statusObj.containsKey("server_time")); }