AppController extends Controller implements AMParams { public void singleJobCounter() throws IOException{ try { requireJob(); } catch (Exception e) { renderText(e.getMessage()); return; } set(COUNTER_GROUP, URLDecoder.decode($(COUNTER_GROUP), "UTF-8")); set(COUNTER_NAME, URLDecoder.decode($(COUNTER_NAME), "UTF-8")); if (app.getJob() != null) { setTitle(StringHelper.join($(COUNTER_GROUP)," ",$(COUNTER_NAME), " for ", $(JOB_ID))); } render(singleCounterPage()); } protected  AppController(App app, Configuration conf, RequestContext ctx,
      String title); @Inject protected  AppController(App app, Configuration conf, RequestContext ctx); @Override void index(); void info(); void job(); void jobCounters(); void taskCounters(); void singleJobCounter(); void singleTaskCounter(); void tasks(); void task(); void attempts(); void conf(); void downloadConf(); void requireJob(); void requireTask();  }
@Test public void testGetSingleJobCounter() throws IOException { appController.singleJobCounter(); assertEquals(SingleCounterPage.class, appController.getClazz()); }