DateTimeAgent extends AbstractAgent { protected String getTime(Date date) { return DateFormat.getTimeInstance(DateFormat.SHORT).format(date); } DateTimeAgent(); @Override AgentResponse process(AgentRequest request);  }
@Test public void testGetTime() { assertEquals("1:00 AM", agent.getTime(testDate)); }