@Test
  public void testCreateResources_SetPassword() throws Exception {
    Map<String, Object> resource = new HashMap<>();
    resource.put(UserResourceProvider.USER_USERNAME_PROPERTY_ID, "User100");
    resource.put(UserResourceProvider.USER_PASSWORD_PROPERTY_ID, "password100");

    createResourcesTest(TestAuthenticationFactory.createAdministrator("admin"), Collections.singleton(resource));
  }
Test setting a user's local password when creating the account. This is for backward compatibility
to maintain the REST API V1 contract.
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UserResourceProviderTest.java