@Test
public void testSetDataToPolicyRestAdapter() {

    logger.debug("testSetDataToPolicyRestAdapter: enter");
    CreateDcaeMicroServiceController.setCommonClassDao(commonClassDao);
    JsonNode root = null;
    ObjectMapper mapper = new ObjectMapper();
    mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
    PolicyRestAdapter policyData = null;
    try {
        root = JsonLoader.fromString(jsonString);
        policyData = mapper.readValue(root.get("policyData").get("policy").toString(), PolicyRestAdapter.class);
    } catch (Exception e) {
        logger.error("testSetDataToPolicyRestAdapter", e);
    }
    CreateDcaeMicroServiceController controller = new CreateDcaeMicroServiceController();
    PolicyRestAdapter result = controller.setDataToPolicyRestAdapter(policyData, root);
    assertTrue(result != null && result.getJsonBody() != null && !result.getJsonBody().isEmpty());
    logger.debug("result.getJsonBody() : " + result.getJsonBody());
    logger.debug("testSetDataToPolicyRestAdapter: exit");
}