@Test
void testInvalidBase64()
{

  RequestHandler requestHandler = new RequestHandler(mockSessionStore, mockConfigHolder,
                                                     mockServiceProviderConfig);
  RequestProcessingException requestProcessingException = Assertions.assertThrows(RequestProcessingException.class,
                                                                                  () -> requestHandler.handleSAMLRequest(RELAY_STATE,
                                                                                                                         INVALID_BASE64,
                                                                                                                         false));
  Assertions.assertEquals(DataFormatException.class,
                          requestProcessingException.getCause().getClass(),
                          "ErrorCodeException expected as cause");
  Assertions.assertEquals(RequestHandler.CANNOT_PARSE_SAML_REQUEST,
                          requestProcessingException.getMessage());
}