@Test
public void getArtifact() throws IOException{

    String gavc = "com.axway.test:artifact1:1.0.0-SNAPSHOT:win32:jar";
    Artifact artifact1 = DataModelFactory.createArtifact("com.axway.test", "artifact1", "1.0.0-SNAPSHOT", "win32",  "jar", "");
    stubFor(get(urlEqualTo("/" + ServerAPI.ARTIFACT_RESOURCE + "/" + gavc))
            .willReturn(aResponse()
                    .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                    .withBody(JsonUtils.serialize(artifact1))
                    .withStatus(Status.OK.getStatusCode())));
    Exception exception = null;
    Artifact artifact2 = null;
    try{
        artifact2 = client.getArtifact(gavc);
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
    assertNotNull(artifact2);
    assertEquals(artifact1, artifact2);
}