@Test
public void getArtifactModule() throws IOException{

    final Module module = DataModelFactory.createModule("name","1.2.3");
    final String gavc = "com.my.company:test:1233:jar";
    stubFor(get(urlEqualTo("/" + ServerAPI.ARTIFACT_RESOURCE + "/" + gavc + ServerAPI.GET_MODULE))
            .willReturn(aResponse()
                    .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                    .withBody(JsonUtils.serialize(module))
                    .withStatus(Status.OK.getStatusCode())));
    Exception exception = null;
    try{
        final Module gotModule = client.getArtifactModule(gavc);
        assertNotNull(gotModule);
        assertEquals(module, gotModule);
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
}