@Test
  public void testGetCommandNonExisting() throws Exception {
    String alias = "javax.jdo.option.ConnectionPassword";
    String providerPath = getProviderPath("CreateCommandTest.jceks");
    String[] args;
    int exitCode;

    /*
     * Get a non-existing credential. Should fail with exit code 1.
     */
    args = getGetArgs(alias, providerPath);
    exitCode = executeCommand(args);
    Assert.assertEquals(exitCode, 1);
  }
Retrieve a non-existing credential.

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