Buggy code:
public class JettySamlTest { @ Rule public SamlAdapterTestStrategy testStrategy = new SamlAdapterTestStrategy ( "http:////localhost:8081//auth" , "http:////localhost:8082" , JettySamlTest . keycloakRule ) ; @ ClassRule public static AbstractKeycloakRule keycloakRule = new AbstractKeycloakRule ( ) { @ Override protected void configure ( KeycloakSession session , RealmManager manager , RealmModel adminRealm ) { } } ; public static Server server = null ; @ BeforeClass public static void initJetty ( ) throws Exception { JettySamlTest . server = new Server ( 8082 ) ; List < Handler > list = new ArrayList < Handler > ( ) ; System . setProperty ( "app.server.base.url" , "http:////localhost:8082" ) ; System . setProperty ( "my.host.name" , "localhost" ) ; URL dir = JettySamlTest . class . getResource ( "//keycloak-saml//testsaml.json" ) ; File base = new File ( dir . getFile ( ) ) . getParentFile ( ) ; list . add ( new WebAppContext ( new File ( base , "simple-post" ) . toString ( ) , "//sales-post" ) ) ; list . add ( new WebAppContext ( new File ( base , "signed-post" ) . toString ( ) , "//sales-post-sig" ) ) ; list . add ( new WebAppContext ( new File ( base , "signed-post-email" ) . toString ( ) , "//sales-post-sig-email" ) ) ; list . add ( new WebAppContext ( new File ( base , "signed-post-transient" ) . toString ( ) , "//sales-post-sig-transient" ) ) ; list . add ( new WebAppContext ( new File ( base , "signed-post-persistent" ) . toString ( ) , "//sales-post-sig-persistent" ) ) ; list . add ( new WebAppContext ( new File ( base , "signed-metadata" ) . toString ( ) , "//sales-metadata" ) ) ; list . add ( new WebAppContext ( new File ( base , "signed-get" ) . toString ( ) , "//employee-sig" ) ) ; list . add ( new WebAppContext ( new File ( base , "mappers" ) . toString ( ) , "//employee2" ) ) ; list . add ( new WebAppContext ( new File ( base , "signed-front-get" ) . toString ( ) , "//employee-sig-front" ) ) ; list . add ( new WebAppContext ( new File ( base , "bad-client-signed-post" ) . toString ( ) , "//bad-client-sales-post-sig" ) ) ; list . add ( new WebAppContext ( new File ( base , "bad-realm-signed-post" ) . toString ( ) , "//bad-realm-sales-post-sig" ) ) ; list . add ( new WebAppContext ( new File ( base , "encrypted-post" ) . toString ( ) , "//sales-post-enc" ) ) ; <START_BUG> SamlAdapterTestStrategy . uploadSP ( "http:////localhost:8081//auth" , JettySamlTest . keycloakRule ) ; <END_BUG> HandlerCollection handlers = new HandlerCollection ( ) ; handlers . setHandlers ( list . toArray ( new Handler [ list . size ( ) ] ) ) ; JettySamlTest . server . setHandler ( handlers ) ; JettySamlTest . server . start ( ) ; } @ AfterClass public static void shutdownJetty ( ) throws Exception { } @ Test public void testPostSimpleLoginLogout ( ) { } @ Test public void testPostSimpleLoginLogoutIdpInitiated ( ) { } @ Test public void testPostSignedLoginLogout ( ) { } @ Test public void testPostSignedLoginLogoutTransientNameID ( ) { } @ Test public void testPostSignedLoginLogoutPersistentNameID ( ) { } @ Test public void testPostSignedLoginLogoutEmailNameID ( ) { } @ Test public void testAttributes ( ) throws Exception { } @ Test public void testRedirectSignedLoginLogout ( ) { } @ Test public void testRedirectSignedLoginLogoutFrontNoSSO ( ) { } @ Test public void testRedirectSignedLoginLogoutFront ( ) { } @ Test public void testPostEncryptedLoginLogout ( ) { } @ Test public void testPostBadClientSignature ( ) { } @ Test public void testPostBadRealmSignature ( ) { } @ Test public void testPostSimpleUnauthorized ( ) { } @ Test public void testMetadataPostSignedLoginLogout ( ) throws Exception { } }

Fix:
SamlAdapterTestStrategy . uploadSP ( "http:////localhost:8081//auth" ) ;