@Test
public void testSaveSettingsDictionary() {

    logger.info("testSaveSettingsDictionary: Entering");
    MockHttpServletResponse response = new MockHttpServletResponse();
    request = mock(HttpServletRequest.class);
    try {
        // mock the getReader() call
        jsonString = "{\"settingsDictionaryData\":{\"xacmlId\":\"testMMRestAPI1\","
                + "\"datatypeBean\": {\"shortName\":\"string\"},\"description\":\"test\","
                + "\"priority\":\"High\"}, \"userid\":\"test\"}";
        BufferedReader br = new BufferedReader(new StringReader(jsonString));
        when(request.getReader()).thenReturn(br);
        controller.saveSettingsDictionary(request, response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("settingsDictionaryDatas"));
    } catch (Exception e) {
        logger.error("Exception Occured" + e);
        fail("Exception: " + e);
    }
    logger.info("testSaveSettingsDictionary: exit");
}