private void setupCluster() throws Exception {
        JsonElement jsonResponse;
        ConnectionParams params = createAdminConnectionParams();

        /**
         * Create a cluster as admin:admin
         */
        jsonResponse = RestApiUtils.executeRequest(new CreateClusterWebRequest(params, clusterName, clusterVersion));

        LOG.info(jsonResponse);
    }
Create a cluster with name "c1". Does not have any hosts.

@throws Exception
ambari-funtest/src/test/java/org/apache/ambari/funtest/server/tests/RoleBasedAccessControlBasicTest.java