@Test
public void getArtifactVersions() throws IOException{

    final String gavc = "com.my.company:test:1233:jar";
    final List<String> versions = new ArrayList<String>();
    versions.add("1.0.0");
    stubFor(get(urlEqualTo("/" + ServerAPI.ARTIFACT_RESOURCE + "/" + gavc + ServerAPI.GET_VERSIONS))
            .willReturn(aResponse()
                    .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                    .withBody(JsonUtils.serialize(versions))
                    .withStatus(Status.OK.getStatusCode())));
    Exception exception = null;
    List<String> receivedVersions = null;
    try{
        receivedVersions = client.getArtifactVersions(gavc);
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
    assertNotNull(receivedVersions);
    assertEquals(1, receivedVersions.size());
    assertEquals("1.0.0", receivedVersions.get(0));
}