@Override
                    public void handle(IAsyncResult<IApiConnectionResponse> result) {
                        Assert.assertTrue("Expected a successful connection response.", result.isSuccess());
                        IApiConnectionResponse scr = result.getResult();
                        Assert.assertEquals("Expected a 401 response from the echo server (invalid creds).", 401, scr.getHead().getCode());
                    }
Should fail because the credentials provided are not valid/
gateway/platforms/servlet/src/test/java/io/apiman/gateway/platforms/servlet/auth/basic/BasicAuthTest.java