@Test
public void serverIsNotAvailable() {

    stubFor(get(urlEqualTo("/"))
            .willReturn(aResponse()
                    .withStatus(Status.NOT_FOUND.getStatusCode())));
    assertFalse(client.isServerAvailable());
}