@Test
public void testPushPolicy() throws Exception {

    Mockito.when(httpServletRequest.getHeader(ENVIRONMENT_HEADER)).thenReturn(DEVL);
    Mockito.when(httpServletRequest.getMethod()).thenReturn(POST);
    Mockito.when(httpServletRequest.getParameter(APIFLAG)).thenReturn(API2);
    Mockito.when(httpServletRequest.getParameter(USER_ID)).thenReturn(API);
    Mockito.when(httpServletRequest.getParameter(GROUP_DESCRIPTION)).thenReturn(null);
    Mockito.when(httpServletRequest.getParameter(POLICY_ID)).thenReturn(POLICY_NAME);
    stdEngine = new StdEngine(Paths.get(PDPS));
    dbd.setPapEngine(stdEngine);
    populatePolicyInDb();
    consoleAndApi.doAcPost(httpServletRequest, httpServletResponse, DEFAULT, logContext, stdEngine);
    assertTrue(HttpServletResponse.SC_NO_CONTENT == httpServletResponse.getStatus());
}