HAAdmin extends Configured implements Tool { protected int help(String[] argv) { return help(argv, USAGE); } protected  HAAdmin(); protected  HAAdmin(Configuration conf); @Override void setConf(Configuration conf); @Override int run(String[] argv);  }
@Test public void testHelp() throws Exception { assertEquals(0, runTool("-help")); assertEquals(0, runTool("-help", "transitionToActive")); assertOutputContains("Transitions the service into Active"); }