@Test
public void testGroupNotExistInDb() throws IOException {

    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_NAME)).thenReturn("testgrpNotExist");
    consoleAndApi.doAcPost(httpServletRequest, httpServletResponse, "testgrpNotExist", logContext, stdEngine);
    assertTrue(HttpServletResponse.SC_INTERNAL_SERVER_ERROR == httpServletResponse.getStatus());
}