@Test
public void getArtifactsNotFound() throws IOException{

    stubFor(get(urlEqualTo("/" + ServerAPI.ARTIFACT_RESOURCE + ServerAPI.GET_ALL + "?hasLicense=false"))
            .willReturn(aResponse().withStatus(Status.NOT_FOUND.getStatusCode())));
    Exception exception = null;
    try{
        client.getArtifacts(false);
    }catch (Exception e) {
        exception = e;
    }
    assertNotNull(exception);
}