@Test
public void getAllArtifactsWithNoFilteringIsBadRequest() {

    final WebResource resource = client().resource("/" + ServerAPI.ARTIFACT_RESOURCE + ServerAPI.GET_ALL);
    final ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.BAD_REQUEST_400, response.getStatus());
    final String entity = response.getEntity(String.class);
    assertTrue(entity.contains("provide at least one artifact filtering criteria"));
}