@Test
public void parseWildcardValid(TestContext context) {

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