@Test
  public void testToolUsage() throws Exception {
    String[] args = new String[1];
    int exitCode;

    /*
     * Invoke tool help
     */
    args[0] = "-help";
    exitCode = executeCommand(args);
    Assert.assertEquals(exitCode, 0);
    Assert.assertTrue(!out.toString().isEmpty());
  }
Prints the tool usage.

@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/credentialapi/CredentialUtilTest.java