ZMSAuthorizer implements Authorizer, Closeable { public void close() { if (client != null) { client.close(); client = null; } } ZMSAuthorizer(String serviceDomain);  ZMSAuthorizer(String endpoint, String serviceDomain); void close(); void setZMSClient(ZMSClient client); boolean access(String action, String resource, String token, String trustDomain); boolean access(String action, String resource, Principal principal, String trustDomain);  }
@Test public void testAuthorizerNoEndpoint() { String domain = "AuthorizerDom2"; ZMSAuthorizer authorizer = new ZMSAuthorizer(domain); assertNotNull(authorizer); authorizer.client = null; authorizer.close(); }