@Override
                    public void handle(IAsyncResult<IApiConnectionResponse> result) {
                        Assert.assertTrue("Expected an error due to not using SSL.", result.isError());
                        Assert.assertTrue("Expected a ConnectorException due to not using SSL.", result.getError() instanceof ConnectorException);
                        Assert.assertEquals("Endpoint security requested (BASIC auth) but endpoint is not secure (SSL).", result.getError().getMessage());
                    }
Scenario successful connection to the back end API via basic auth.
gateway/platforms/servlet/src/test/java/io/apiman/gateway/platforms/servlet/auth/basic/BasicAuthTest.java