    @Test
    public void responseIsNotFoundShouldThrowException() {

        PwnedPasswordClient pwnedPasswordClient = new PwnedPasswordClient(new OkHttpClient(), "http://localhost:8089", "unit-test");

        try {
            pwnedPasswordClient.fetchHashesAsync(Hex.from("password")).get();
            fail();
        } catch (ExecutionException e) {
            assertTrue(e.getCause().getClass() == ConnectException.class);
        } catch (InterruptedException e) {
            fail();
        }
    }