ZoneAwareIdpMetadataGenerator extends IdpMetadataGenerator { @Override public boolean isWantAuthnRequestSigned() { if (!IdentityZoneHolder.isUaa()) { return getZoneDefinition().getSamlConfig().isWantAuthnRequestSigned(); } return super.isWantAuthnRequestSigned(); }  @Override boolean isAssertionsSigned(); @Override int getAssertionTimeToLiveSeconds(); @Override IdpExtendedMetadata generateExtendedMetadata(); @Override String getEntityId(); @Override String getEntityBaseURL(); @Override boolean isWantAuthnRequestSigned(); @Override EntityDescriptor generateMetadata();  }
@Test void testWantRequestSigned() { zoneAwareIdpMetadataGenerator.setWantAuthnRequestSigned(false); assertFalse(zoneAwareIdpMetadataGenerator.isWantAuthnRequestSigned()); zoneAwareIdpMetadataGenerator.setWantAuthnRequestSigned(true); assertTrue(zoneAwareIdpMetadataGenerator.isWantAuthnRequestSigned()); IdentityZoneHolder.set(notUaaZone); assertFalse(zoneAwareIdpMetadataGenerator.isWantAuthnRequestSigned()); }