### Question:
BankProfileReaderConfiguration { @Bean public ProfileConfigurations profileConfiguration() { return bankProfileReadingService.getProfileConfigurations(); }  @Bean ProfileConfigurations profileConfiguration();  }### Answer:
@Test void profileConfigurationDefaultScaRedirectFlow() { ProfileConfigurations profileConfiguration = bankProfileReaderConfiguration.profileConfiguration(); assertEquals(ScaRedirectFlow.REDIRECT, profileConfiguration.getSetting(INSTANCE_ID).getCommon().getScaRedirectFlow()); }
@Test void profileConfigurationDefaultBookingStatus() { ProfileConfigurations profileConfiguration = bankProfileReaderConfiguration.profileConfiguration(); assertEquals(1, profileConfiguration.getSetting(INSTANCE_ID).getAis().getTransactionParameters().getAvailableBookingStatuses().size()); assertTrue(profileConfiguration.getSetting(INSTANCE_ID).getAis().getTransactionParameters().getAvailableBookingStatuses().contains(BookingStatus.BOOKED)); }
@Test void profileConfigurationDefaultScaApproach() { ProfileConfigurations profileConfiguration = bankProfileReaderConfiguration.profileConfiguration(); assertEquals(1, profileConfiguration.getSetting(INSTANCE_ID).getCommon().getScaApproachesSupported().size()); assertTrue(profileConfiguration.getSetting(INSTANCE_ID).getCommon().getScaApproachesSupported().contains(ScaApproach.REDIRECT)); }
@Test void profileConfigurationDefaultStartAuthorisationMode() { ProfileConfigurations profileConfiguration = bankProfileReaderConfiguration.profileConfiguration(); assertEquals(StartAuthorisationMode.AUTO.getValue(), profileConfiguration.getSetting(INSTANCE_ID).getCommon().getStartAuthorisationMode()); }