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

    when(repositoryHandler.getArtifact(anyString())).thenReturn(new DbArtifact());
    client().addFilter(new HTTPBasicAuthFilter(USER_4TEST, PASSWORD_4TEST));
    WebResource resource = client().resource("/" + ServerAPI.ARTIFACT_RESOURCE + "/gavc");
    ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).delete(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.OK_200, response.getStatus());
}