@Test
public void isPromotedNotValidTypeStageUpload(){

    when(repositoryHandler.getArtifactUsingSHA256("6554ed3d1ab007bd81d3d57ee27027510753d905277d5b5b8813e5bd516e821c")).thenReturn(null);
    
	ArtifactQuery artifactQuery = new ArtifactQuery("User", 1, "File1", "6554ed3d1ab007bd81d3d57ee27027510753d905277d5b5b8813e5bd516e821c", "notValidType", "");
    MultivaluedMap<String, String> params = makeParams(artifactQuery);
	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.UNPROCESSABLE_ENTITY_422, response.getStatus());
    assertEquals("Validation is not supported for this type of file", returnMessage);
}