@Test
public void testRemoveActionPolicyDictionary() {

    jsonString =
            "{\"data\":{\"$$hashKey\":\"uiGrid-003S\",\"attributeName\":\"Test\",\"body\":\"{}\",\"createdDate\":"
            + "1518195117000,\"description\":\"test\",\"header\":\"test=12\",\"id\":1,\"method\":\"GET\","
            + "\"modifiedDate\":1518195489000,\"type\":\"REST\",\"url\":\"http://test.com\",\"userCreatedBy\":"
            + "{\"userLoginId\":\"demo\",\"userName\":\"Demo\"},\"userModifiedBy\":{\"userLoginId\":\"demo\","
            + "\"userName\":\"Demo\"}}}";
    try (BufferedReader br = new BufferedReader(new StringReader(jsonString))) {
        when(request.getReader()).thenReturn(br);
        controller.removeActionPolicyDictionary(request, response);
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("actionPolicyDictionaryDatas"));
    } catch (Exception e) {
        logger.error("Exception" + e);
    }
}