@Test
public void test_getGroupsFromAAD_failed() throws Exception {

    String group = "testgroup";
    Response response = new Response();
    response.setHttpstatus(HttpStatus.OK);
    response.setSuccess(true);
    response.setResponse(null);
    when(httpUtils.getHttpClient()).thenReturn(httpClient);
    when(httpClient.execute(any())).thenReturn(httpResponse);
    when(httpResponse.getStatusLine()).thenReturn(statusLine);
    when(statusLine.getStatusCode()).thenReturn(400);
    ReflectionTestUtils.setField(oidcUtil, "ssoGroupsEndpoint", "testgroupurl");
    List<DirectoryGroup> groups = oidcUtil.getGroupsFromAAD("testssotoken", group);
    assertEquals(0, groups.size());
}