@Test
public void getModulePromotionStatus() throws IOException{

    final String moduleName = "testModule";
    final String moduleVersion = "1.2.0-3";
    stubFor(get(urlEqualTo("/" + ServerAPI.MODULE_RESOURCE + "/" + moduleName + "/" + moduleVersion + ServerAPI.PROMOTION))
            .willReturn(aResponse()
                    .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                    .withBody(JsonUtils.serialize(Boolean.TRUE))
                    .withStatus(Status.OK.getStatusCode())));
    Exception exception = null;
    Boolean promotionStatus = null;
    try{
        promotionStatus = client.getModulePromotionStatus(moduleName, moduleVersion);
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
    assertNotNull(promotionStatus);
    assertTrue(promotionStatus);
}