@Test
public void getArtifactLastVersion() throws IOException{

    final String gavc = "com.my.company:test:1233:jar";
    stubFor(get(urlEqualTo("/" + ServerAPI.ARTIFACT_RESOURCE + "/" + gavc + ServerAPI.GET_LAST_VERSION))
            .willReturn(aResponse()
                    .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                    .withBody("1.0.0")
                    .withStatus(Status.OK.getStatusCode())));
    Exception exception = null;
    String lastVersion = null;
    try{
        lastVersion = client.getArtifactLastVersion(gavc);
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
    assertNotNull(lastVersion);
    assertEquals("1.0.0", lastVersion);
}