@Test
public void getModuleVersions() throws IOException{

    final String moduleName = "testModule";
    final List<String> versions = Lists.newArrayList("1", "2", "3");
    stubFor(get(urlEqualTo("/" + ServerAPI.MODULE_RESOURCE + "/" + moduleName + 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> gotVersions = null;
    try{
        gotVersions = client.getModuleVersions(moduleName);
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
    assertNotNull(gotVersions);
    assertEquals(versions.size(), gotVersions.size());
}