@Test
public void testSavePSGroupScopeDictionary() {

    jsonString =
            "{\"groupPolicyScopeListData\":{\"description\":\"test\",\"groupName\":\"Test\"},\"groupPolicyScopeListData1\":{\"closedloop\":\"SampleClosedLoop\",\"resource\":\"SampleResource\",\"service\":\"SampleService\",\"type\":\"SampleType\"},\"userid\":\"demo\"}";
    try (BufferedReader br = new BufferedReader(new StringReader(jsonString))) {
        when(request.getReader()).thenReturn(br);
        controller.savePSGroupScopeDictionary(request, response);
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("groupPolicyScopeListDatas"));
    } catch (Exception e) {
        logger.error("Exception" + e);
    }
}