@Test
public void testGroupCreation() 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_DESCRIPTION)).thenReturn("test");
    Mockito.when(httpServletRequest.getParameter(GROUP_NAME)).thenReturn(TESTGRP1);
    consoleAndApi.doAcPost(httpServletRequest, httpServletResponse, TESTGRP1, logContext, stdEngine);
    assertTrue(HttpServletResponse.SC_NO_CONTENT == httpServletResponse.getStatus());
}