@Test
public void testRemoveMicroServiceLocationDictionary() {

    logger.info("testRemoveMicroServiceLocationDictionary: Entering");
    MockHttpServletResponse response = new MockHttpServletResponse();
    request = mock(HttpServletRequest.class);
    try {
        // mock the getReader() call
        jsonString =
                "{\"data\": {\"modelName\": \"test\",\"inprocess\": false,\"model\": {\"name\": \"testingdata\", "
                        + "\"subScopename\": \"\",\"path\": [],\"type\": \"dir\",\"size\": 0,"
                        + "\"date\": \"2017-04-12T21:26:57.000Z\",\"version\": \"\",\"createdBy\": \"someone\","
                        + "\"modifiedBy\": \"someone\",\"content\": \"\",\"recursive\": false},\"policy\": "
                        + "{\"policyType\": \"Config\",\"configPolicyType\": \"Micro Service\","
                        + "\"policyName\": \"may1501\",\"policyDescription\": \"testing input\","
                        + "\"onapName\": \"RaviTest\",\"guard\": \"False\",\"riskType\": \"Risk12345\","
                        + "\"riskLevel\": \"2\",\"priority\": \"6\",\"serviceType\": \"DkatPolicyBody\","
                        + "\"version\": \"1707.41.02\",\"ruleGridData\": [[\"fileId\"]],\"ttlDate\": null}},"
                        + "\"policyJSON\": {\"pmTableName\": \"test\",\"dmdTopic\": \"1\",\"fileId\": \"56\"}}";
        BufferedReader br = new BufferedReader(new StringReader(jsonString));
        when(request.getReader()).thenReturn(br);
        controller.removeMicroServiceLocationDictionary(request, response);
        logger.info("response.getContentAsString(): " + response.getContentAsString());
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("microServiceLocationDictionaryDatas"));
    } catch (Exception e) {
        fail("Exception: " + e);
    }
    logger.info("testRemoveMicroServiceLocationDictionary: exit");
}