public String getRegex(final Exchange exchange) {
        return getOption(BlobExchangeHeaders::getRegexFromHeaders, configuration::getRegex, exchange);
    }
@Test
    void testIfCorrectOptionsReturnedCorrectlyWithRegexSet() {
        final BlobConfiguration configuration = new BlobConfiguration();

        // first case: when exchange is set
        final Exchange exchange = new DefaultExchange(context);
        final BlobConfigurationOptionsProxy configurationOptionsProxy = new BlobConfigurationOptionsProxy(configuration);

        configuration.setRegex(".*\\.exe");
        assertEquals(".*\\.exe", configurationOptionsProxy.getRegex(exchange));

        //test header override
        exchange.getIn().setHeader(BlobConstants.REGEX, ".*\\.pdf");
        assertEquals(".*\\.pdf", configurationOptionsProxy.getRegex(exchange));
    }