public static JSONObject buildBrokerTenantCreateRequestJSON(
     String tenantName, int numberOfInstances) throws JSONException {
   Tenant tenant =
       new TenantBuilder(tenantName)
           .setRole(TenantRole.BROKER)
           .setTotalInstances(numberOfInstances)
           .setOfflineInstances(0)
           .setRealtimeInstances(0)
           .build();
   return tenant.toJSON();
 }