EasyMock.expect(requestMock.getAny()).andStubReturn(
Arrays.asList((Object) jUseKeyType, (Object) tokenType));
EasyMock.replay(requestMock);
TokenProvider tp1 = new Saml1TokenProvider();
TokenProvider tp2 = new Saml2TokenProvider();
id.setTokenProviders(Arrays.asList(tp1, tp2));
try {
id.issue(requestMock, null);
fail("STSException should be thrown");