@Test
public void parseWithInvalidPattern(TestContext context) {

    List<KafkaConfiguration> configurations = KafkaConfigurationParser.parse(Buffer.buffer(INVALID_PATTERN_CONFIG_RESOURCE), new HashMap<>());
    context.assertEquals(1, configurations.size());
    // Note that the order of the parsed configurations matters!
    KafkaConfiguration config_1 = configurations.get(0);
    context.assertEquals(Pattern.compile("my.topic.*").pattern(), config_1.getTopic().pattern());
    Map<String, String> expected_1 = new HashMap<String, String>() {{
        put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
        put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");
        put("bootstrap.servers", "localhost:9092");
    }};
    context.assertEquals(expected_1, config_1.getConfigurations());
}