@Test
public final void testPolicyCreationController() {

    assertNull(PolicyRestController.getCommonClassDao());
    PolicyRestController.setCommonClassDao(commonClassDao);
    assertNotNull(PolicyRestController.getCommonClassDao());
    PolicyRestController controller = new PolicyRestController();
    BufferedReader reader = new BufferedReader(new StringReader(clRequestString));
    try {
        Mockito.when(request.getReader()).thenReturn(reader);
        controller.policyCreationController(request, response);
    } catch (IOException e) {
        fail();
    }
    PolicyRestController controller1 = new PolicyRestController();
    CreateFirewallController.setCommonClassDao(commonClassDao);
    assertNotNull(CreateFirewallController.getCommonClassDao());
    BufferedReader reader1 = new BufferedReader(new StringReader(fwRequestString));
    try {
        Mockito.when(request.getReader()).thenReturn(reader1);
        controller1.policyCreationController(request, response);
    } catch (IOException e) {
        fail();
    }
    CreateFirewallController fwController = new CreateFirewallController();
    CreateFirewallController.setCommonClassDao(commonClassDao);
    BufferedReader reader2 = new BufferedReader(new StringReader(fwViewRequestString));
    try {
        Mockito.when(request.getReader()).thenReturn(reader2);
        fwController.setFWViewRule(request, response);
    } catch (IOException e) {
        fail();
    }
}