@Test
public void testAuthorizeAclUriPUTRequestInvalid(TestContext context) {

    String requestUri = "/gateleen/server/security/v1/acls/admin";
    DummyHttpServerResponse response = Mockito.spy(new DummyHttpServerResponse());
    AuthorizerRequest req = new AuthorizerRequest(HttpMethod.PUT, requestUri, new CaseInsensitiveHeaders(),
            "{invalidJson}", response);
    authorizer.authorize(req).setHandler(event -> {
        context.assertTrue(event.succeeded());
        context.assertFalse(event.result());
    });
    Mockito.verify(response, timeout(1000).times(1)).setStatusCode(eq(StatusCode.BAD_REQUEST.getStatusCode()));
    Mockito.verify(response, timeout(1000).times(1)).setStatusMessage(eq("Bad Request Unable to parse json"));
    Mockito.verify(response, timeout(1000).times(1)).end("Unable to parse json");
}