@Override
          public Object answer() throws Throwable {
            Object[] args = getCurrentArguments();

            ((PrincipalEntity) args[0]).setId(1L);
            return null;
          }
Test give a user Ambari administrative rights by assigning the user to the AMBARI.ADMINISTRATOR role
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