@Test
public void testCustomSpEntityIdForRedirectBinding() throws Exception {
Saml2Client client = getClient();
client.setSpEntityId("http://localhost:8080/callback");
WebContext context = MockWebContext.create();
RedirectAction action = client.getRedirectAction(context, true, false);
assertTrue(getInflatedAuthnRequest(action.getLocation())
.contains(
"<saml2:Issuer xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\">http://localhost:8080/callback</saml2:Issuer>"));
}