@Test
  public void testCreateCommand() throws Exception {
    String alias = "javax.jdo.option.ConnectionPassword";
    String credential = "MyTopSecretPassword";
    String providerPath = getProviderPath("CreateCommandTest.jceks");
    String[] args = getCreateArgs(alias, credential, providerPath);

    int exitCode = executeCommand(args);

    Assert.assertEquals(exitCode, 0);
  }
Creates a non-existing credential

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