private UserAuthorizationResponse getResponse(String authorizationId, String authorizationName,
                                                                     String resourceType, String userName, String viewName,
                                                                     String viewVersion, String viewInstanceName) {
    return new UserAuthorizationResponse(authorizationId, authorizationName, resourceType, userName, viewName, viewVersion, viewInstanceName);

  }
Returns user authorization response instance that represents the response schema
for /users/{userName}/authorizations REST endpoint
@param authorizationId      authorization id
@param authorizationName    authorization name
@param resourceType         resource type
@param userName             user name
@param viewName             view name
@param viewVersion          view version
@param viewInstanceName     view instance name
@return  {@link UserAuthorizationResponse}
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UserAuthorizationResourceProvider.java