@Test
public void testSaveDictionaryData() {

    logger.info("testSaveDictionaryData: Entering");
    MockHttpServletResponse response = new MockHttpServletResponse();
    request = mock(HttpServletRequest.class);
    try {
        jsonString = "{\"microServiceDictionaryDatas\": {\"id\": 1,\"dictionaryName\": \"tes1t\","
                + "\"dictionaryUrl\": \"tes1t\",\"dictionaryDataByName\": \"test\"}}";
        BufferedReader br = new BufferedReader(new StringReader(jsonString));
        when(request.getReader()).thenReturn(br);
        controller.saveDictionaryData(request, response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("microServiceDictionaryDatas"));
    } catch (Exception e) {
        fail("Exception: " + e);
    }
    logger.info("testSaveDictionaryData: exit");
}