Buggy code:
public class TomcatSamlTest { @ ClassRule public static AbstractKeycloakRule keycloakRule = new AbstractKeycloakRule ( ) { @ Override protected void configure ( KeycloakSession session , RealmManager manager , RealmModel adminRealm ) { } } ; static Tomcat tomcat = null ; @ BeforeClass public static void initTomcat ( ) throws Exception { TomcatSamlTest . tomcat = new Tomcat ( ) ; String baseDir = TomcatTest . getBaseDirectory ( ) ; TomcatSamlTest . tomcat . setBaseDir ( baseDir ) ; TomcatSamlTest . tomcat . setPort ( 8082 ) ; System . setProperty ( "app.server.base.url" , "http:////localhost:8082" ) ; System . setProperty ( "my.host.name" , "localhost" ) ; URL dir = TomcatSamlTest . class . getResource ( "//keycloak-saml//testsaml.json" ) ; File base = new File ( dir . getFile ( ) ) . getParentFile ( ) ; TomcatSamlTest . tomcat . addWebapp ( "//sales-post" , new File ( base , "simple-post" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//sales-post-sig" , new File ( base , "signed-post" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//sales-post-sig-email" , new File ( base , "signed-post-email" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//sales-post-sig-transient" , new File ( base , "signed-post-transient" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//sales-post-sig-persistent" , new File ( base , "signed-post-persistent" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//sales-metadata" , new File ( base , "signed-metadata" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//employee-sig" , new File ( base , "signed-get" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//employee2" , new File ( base , "mappers" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//employee-sig-front" , new File ( base , "signed-front-get" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//bad-client-sales-post-sig" , new File ( base , "bad-client-signed-post" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//bad-realm-sales-post-sig" , new File ( base , "bad-realm-signed-post" ) . toString ( ) ) ; TomcatSamlTest . tomcat . addWebapp ( "//sales-post-enc" , new File ( base , "encrypted-post" ) . toString ( ) ) ; <START_BUG> SamlAdapterTestStrategy . uploadSP ( "http:////localhost:8081//auth" , TomcatSamlTest . keycloakRule ) ; <END_BUG> TomcatSamlTest . tomcat . start ( ) ; } @ AfterClass public static void shutdownTomcat ( ) throws Exception { } @ Rule public SamlAdapterTestStrategy testStrategy = new SamlAdapterTestStrategy ( "http:////localhost:8081//auth" , "http:////localhost:8082" , TomcatSamlTest . keycloakRule ) ; @ 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" ) ;