@Test
public void isPromoted(){

	final DbArtifact artifact = new DbArtifact();
    artifact.setGroupId("groupId");
    artifact.setArtifactId("artifactId");
    artifact.setVersion("version");
    artifact.setClassifier("classifier");
    artifact.setPromoted(true);
    when(repositoryHandler.getArtifactUsingSHA256("6554ed3d1ab007bd81d3d57ee27027510753d905277d5b5b8813e5bd516e821c")).thenReturn(artifact);
    
	ArtifactQuery artifactQuery = new ArtifactQuery("User", 1, "File1", "6554ed3d1ab007bd81d3d57ee27027510753d905277d5b5b8813e5bd516e821c", "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 ArtifactPromotionStatus promotionStatus = response.getEntity(ArtifactPromotionStatus.class);
    
    assertNotNull(response);
    assertEquals(HttpStatus.OK_200, response.getStatus());
    assertTrue(promotionStatus.isPromoted());
    assertEquals("Artifact is promoted", promotionStatus.getMessage());
}