ControllerPreAuthenticatedAnonymousDownload extends AbstractControllerAuthenticationFilter { @Override protected String getTenantConfigurationKey() { return TenantConfigurationKey.ANONYMOUS_DOWNLOAD_MODE_ENABLED; } ControllerPreAuthenticatedAnonymousDownload(
            final TenantConfigurationManagement tenantConfigurationManagement, final TenantAware tenantAware,
            final SystemSecurityContext systemSecurityContext); @Override HeaderAuthentication getPreAuthenticatedPrincipal(final DmfTenantSecurityToken secruityToken); @Override HeaderAuthentication getPreAuthenticatedCredentials(final DmfTenantSecurityToken secruityToken);  }
@Test public void useCorrectTenantConfiguationKey() { assertThat(underTest.getTenantConfigurationKey()).as("Should be using the correct tenant configuration key") .isEqualTo(underTest.getTenantConfigurationKey()); }