@Test
public void testSaveRolesEntityData() {

    logger.info("PolicyRolesControllerTest: Entering");
    String jsonString =
            "{\"editRoleData\": {\"id\": 1,\"loginId\": {\"userLoginId\" : \"test\", \"userName\" : \"test\"},"
                    + "\"role\":\"test\",\"scope\":[\"scope\"]}}";
    try (BufferedReader br = new BufferedReader(new StringReader(jsonString))) {
        when(request.getReader()).thenReturn(br);
        controller.SaveRolesEntityData(request, response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null && response.getContentAsString().contains("rolesDatas"));
    } catch (Exception e) {
        fail("Exception: " + e);
    }
    logger.info("PolicyRolesControllerTest: exit");
}