@Test
public void artifactNotKnownUploadTest(){

	final String sha256 = "6554ed3d1ab007bd81d3d57ee27027510753d905277d5b5b8813e5bd516e821c";
    when(repositoryHandler.getArtifactUsingSHA256(sha256)).thenReturn(null);
    
    ArtifactQuery artifactQuery = new ArtifactQuery("User", 0, "File1", sha256, "filetype1", "");
    MultivaluedMap<String, String> params = makeParams(artifactQuery);
    Messages.init(templatePath);
	WebResource resource = client().resource("/" + ServerAPI.ARTIFACT_RESOURCE + "/isPromoted");
    ClientResponse response = resource.queryParams(params).type(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    final String returnMessage = response.getEntity(String.class);
    
    assertNotNull(response);
    assertEquals(HttpStatus.NOT_FOUND_404, response.getStatus());
    assertEquals(Messages.get(MessageKey.ARTIFACT_VALIDATION_NOT_KNOWN), returnMessage);
}