@Test
public void testUpdateActionPolicyDictionary() {

    jsonString =
            "{\"actionPolicyDictionaryData\":{\"id\":1,\"attributeName\":\"Test\",\"body\":\"{}\",\"description\":"
            + "\"test\",\"headers\":[{\"$$hashKey\":\"object:548\",\"id\":\"choice1\",\"number\":"
            + "\"12\",\"option\":\"test\"}],\"method\":\"GET\",\"type\":\"REST\",\"url\":\"http://test.com\"},"
            + "\"userid\":\"demo\"}";
    try (BufferedReader br = new BufferedReader(new StringReader(jsonString))) {
        when(request.getReader()).thenReturn(br);
        controller.saveActionPolicyDictionary(request, response);
        assertTrue(response.getContentAsString() != null
                && response.getContentAsString().contains("actionPolicyDictionaryData"));
    } catch (Exception e) {
        logger.error("Exception" + e);
    }
}