ApolloOpenApiClient { public static ApolloOpenApiClientBuilder newBuilder() { return new ApolloOpenApiClientBuilder(); } private  ApolloOpenApiClient(String portalUrl, String token, RequestConfig requestConfig); List<OpenEnvClusterDTO> getEnvClusterInfo(String appId); List<OpenAppDTO> getAllApps(); List<OpenAppDTO> getAppsByIds(List<String> appIds); List<OpenNamespaceDTO> getNamespaces(String appId, String env, String clusterName); OpenClusterDTO getCluster(String appId, String env, String clusterName); OpenClusterDTO createCluster(String env, OpenClusterDTO openClusterDTO); OpenNamespaceDTO getNamespace(String appId, String env, String clusterName, String namespaceName); OpenAppNamespaceDTO createAppNamespace(OpenAppNamespaceDTO appNamespaceDTO); OpenNamespaceLockDTO getNamespaceLock(String appId, String env, String clusterName, String namespaceName); OpenItemDTO getItem(String appId, String env, String clusterName, String namespaceName, String key); OpenItemDTO createItem(String appId, String env, String clusterName, String namespaceName,
      OpenItemDTO itemDTO); void updateItem(String appId, String env, String clusterName, String namespaceName, OpenItemDTO itemDTO); void createOrUpdateItem(String appId, String env, String clusterName, String namespaceName, OpenItemDTO itemDTO); void removeItem(String appId, String env, String clusterName, String namespaceName, String key,
      String operator); OpenReleaseDTO publishNamespace(String appId, String env, String clusterName, String namespaceName,
      NamespaceReleaseDTO releaseDTO); OpenReleaseDTO getLatestActiveRelease(String appId, String env, String clusterName, String namespaceName); void rollbackRelease(String env, long releaseId, String operator); String getPortalUrl(); String getToken(); static ApolloOpenApiClientBuilder newBuilder();  }
@Test(expected = IllegalArgumentException.class) public void testCreateWithInvalidUrl() { String someInvalidUrl = "someInvalidUrl"; String someToken = "someToken"; ApolloOpenApiClient.newBuilder().withPortalUrl(someInvalidUrl).withToken(someToken).build(); }