GenericHandler extends AbstractHandler { public String getContext() { return context; } protected  GenericHandler(); protected  GenericHandler(ContextStore store, String context); protected  GenericHandler(ContextStore store, String context, boolean doClaim); String getContext(); static final String CONTENT_TYPE_JSON; static final String CONTENT_TYPE_HTML; static final String CONTENT_TYPE_PLAIN_TEXT; }
@Test public void testGetContext() { String context = "testGetContext"; gh = new MockGenericHandler(context); assertEquals("Context was wrong", context, gh.getContext()); }