@Test
public void getModulesNotFound() throws IOException{

    stubFor(get(urlEqualTo("/" + ServerAPI.MODULE_RESOURCE + ServerAPI.GET_ALL + "?test=test.test"))
            .willReturn(aResponse()
                    .withStatus(Status.NOT_FOUND.getStatusCode())));
    Exception exception = null;
    try{
        client.getModules(Collections.singletonMap("test", "test.test"));
    }catch (Exception e) {
        exception = e;
    }
    assertNotNull(exception);
}