@Test(expected = ConnectException.class)
public void shouldFailOnInvalidConfigurationForTopicRegex() {

    final EventRouter<SourceRecord> router = new EventRouter<>();
    final Map<String, String> config = new HashMap<>();
    config.put(EventRouterConfigDefinition.ROUTE_TOPIC_REGEX.name(), " [[a-z]");
    router.configure(config);
}