@Test
public void test_getSSOToken_400() throws Exception {

    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);
    when(httpResponse.getEntity()).thenReturn(mockHttpEntity);
    String responseString = "";
    when(mockHttpEntity.getContent()).thenReturn( new ByteArrayInputStream(responseString.getBytes()));
    ReflectionTestUtils.setField(oidcUtil, "ssoGroupsEndpoint", "testgroupurl");
    when(ControllerUtil.getOidcADLoginUrl()).thenReturn("testurl");
    String responseJson = "{\"errors\":[\"Failed to get SSO token for Azure AD access\"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.BAD_REQUEST).body(responseJson);
    String actualToken = oidcUtil.getSSOToken();
    assertEquals(null, actualToken);
}