    @Test
    public void shouldReturnHttpStatus401WhenAuthConfigurationIsInvalid() throws Exception {

        assumeTrue(System.getenv("CIRCLE_USERNAME") == null);
        HttpStatus httpStatus = client.checkAuth(AuthConfig.authConfig("xxx", "xxx", "xxxx"));
        assertThat(httpStatus.code(), is(equalTo(401)));
        assertThat(httpStatus.message(), is(equalTo("Unauthorized")));
    }