@Test
public void deleteModuleNotFound(){

    String moduleName = "module";
    String moduleVersion = "1.0.0-SNAPSHOT";
    stubFor(delete(urlEqualTo("/" + ServerAPI.MODULE_RESOURCE + "/" + moduleName + "/" + moduleVersion))
            .willReturn(aResponse()
                    .withStatus(Status.NOT_FOUND.getStatusCode())));
    Exception exception = null;
    try{
        client.deleteModule(moduleName, moduleVersion, "user", "password");
    }catch (Exception e) {
        exception = e;
    }
    assertNotNull(exception);
}