@Test
public void postDoNotUseArtifactNotFound() throws IOException{

    Artifact artifact1 = DataModelFactory.createArtifact("com.axway.test", "artifact1", "1.0.0-SNAPSHOT", "win32",  "jar", "");
    stubFor(post(urlEqualTo("/" + ServerAPI.ARTIFACT_RESOURCE + "/" + artifact1.getGavc() + ServerAPI.SET_DO_NOT_USE + "?" + ServerAPI.DO_NOT_USE + "=true"))
            .willReturn(aResponse()
                    .withStatus(Status.NOT_FOUND.getStatusCode())));
    Exception exception = null;
    try{
        client.postDoNotUseArtifact(artifact1.getGavc(), true, "user", "password");
    }catch (Exception e) {
        exception = e;
    }
    assertNotNull(exception);
}