@Test
public void deleteModuleWithWrongCredentials() throws AuthenticationException, UnknownHostException {

    client().addFilter(new HTTPBasicAuthFilter(GrapesTestUtils.WRONG_USER_4TEST, GrapesTestUtils.WRONG_PASSWORD_4TEST));
    final WebResource resource = client().resource("/" + ServerAPI.MODULE_RESOURCE + "/what/ever");
    final ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).delete(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.UNAUTHORIZED_401, response.getStatus());
}