public TopicConsumerConfigurationData getMatchingTopicConfiguration(String topicName) {
        return topicConfigurations.stream()
                .filter(topicConf -> topicConf.getTopicNameMatcher().matches(topicName))
                .findFirst()
                .orElseGet(() -> TopicConsumerConfigurationData.ofTopicName(topicName, this));
    }
@Test(dataProvider = "topicConf")
    public void testTopicConsumerConfigurationData(String topicName, int expectedPriority) {
        ConsumerConfigurationData<String> consumerConfigurationData = new ConsumerConfigurationData<>();
        consumerConfigurationData.setPriorityLevel(1);

        consumerConfigurationData.getTopicConfigurations()
                .add(TopicConsumerConfigurationData.ofTopicsPattern(Pattern.compile("^foo$"), 2));

        TopicConsumerConfigurationData topicConsumerConfigurationData =
                consumerConfigurationData.getMatchingTopicConfiguration(topicName);

        assertThat(topicConsumerConfigurationData.getPriorityLevel()).isEqualTo(expectedPriority);
    }