@Test
public void testGet() throws Exception {

    stdEngine = new StdEngine(Paths.get("src", "test", "resources", "pdps"));
    dbd.setPapEngine(stdEngine);
    Mockito.when(httpServletRequest.getHeader(ENVIRONMENT_HEADER)).thenReturn(DEVL);
    Mockito.when(httpServletRequest.getMethod()).thenReturn("GET");
    Mockito.when(httpServletRequest.getParameter(APIFLAG)).thenReturn(API2);
    Mockito.when(httpServletRequest.getParameter(USER_ID)).thenReturn(API);
    Mockito.when(httpServletRequest.getParameter(PDP_ID)).thenReturn("http://localhost:4344/pdp/");
    Mockito.when(httpServletRequest.getParameter(GROUP_NAME)).thenReturn("");
    consoleAndApi.doAcGet(httpServletRequest, httpServletResponse, "", logContext, stdEngine);
    assertTrue(HttpServletResponse.SC_OK == httpServletResponse.getStatus());
    httpServletResponse = new MockHttpServletResponse();
    Mockito.when(httpServletRequest.getParameter(DEFAULT)).thenReturn(DEFAULT);
    consoleAndApi.doAcGet(httpServletRequest, httpServletResponse, "", logContext, stdEngine);
    assertTrue(HttpServletResponse.SC_OK == httpServletResponse.getStatus());
    Mockito.when(httpServletRequest.getParameter(PDP_ID)).thenReturn(null);
    Mockito.when(httpServletRequest.getParameter(DEFAULT)).thenReturn(null);
    consoleAndApi.doAcGet(httpServletRequest, httpServletResponse, "", logContext, stdEngine);
    assertTrue(HttpServletResponse.SC_OK == httpServletResponse.getStatus());
    Mockito.when(httpServletRequest.getParameter("getPDPGroup")).thenReturn(TESTGROUP2);
    Mockito.when(httpServletRequest.getParameter(GROUP_NAME)).thenReturn(TESTGROUP2);
    consoleAndApi.doAcGet(httpServletRequest, httpServletResponse, TESTGROUP2, logContext, stdEngine);
    assertTrue(HttpServletResponse.SC_OK == httpServletResponse.getStatus());
}