@Test
public void testSaveOnapDictionary() {

    logger.info("testSaveOnapDictionary: Entering");
    MockHttpServletResponse response = new MockHttpServletResponse();
    request = mock(HttpServletRequest.class);
    try {
        jsonString =
                "{\"userid\":\"demo\",\"onapNameDictionaryData\":{\"description\":\"test\",\"onapName\":\"Test\"}}";
        BufferedReader br = new BufferedReader(new StringReader(jsonString));
        when(request.getReader()).thenReturn(br);
        controller.saveOnapDictionary(request, response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("onapNameDictionaryDatas"));
    } catch (Exception e) {
        fail("Exception: " + e);
    }
    logger.info("testSaveOnapDictionary: exit");
}