@Test
public void testFilterMatchers() {

    List<String> regexes = SseUtil
            .convertToRegex("openhab/*/test/test/test/test,    openhab/test/*/test/test/test, openhab,qivicon");
    assertThat("openhab/test/test/test/test/test".matches(regexes.get(0)), is(true));
    assertThat("openhab/asdf/test/test/test/test".matches(regexes.get(0)), is(true));
    assertThat("openhab/asdf/ASDF/test/test/test".matches(regexes.get(0)), is(false));
    assertThat("openhab/test/test/test/test/test".matches(regexes.get(1)), is(true));
    assertThat("openhab/asdf/test/test/test/test".matches(regexes.get(1)), is(false));
    assertThat("openhab/asdf/ASDF/test/test/test".matches(regexes.get(1)), is(false));
    assertThat("openhab/test/test/test/test/test".matches(regexes.get(2)), is(true));
    assertThat("openhab/asdf/test/test/test/test".matches(regexes.get(2)), is(true));
    assertThat("openhab/asdf/ASDF/test/test/test".matches(regexes.get(2)), is(true));
    assertThat("openhab/test/test/test/test/test".matches(regexes.get(3)), is(false));
    assertThat("openhab/asdf/test/test/test/test".matches(regexes.get(3)), is(false));
    assertThat("qivicon/asdf/ASDF/test/test/test".matches(regexes.get(3)), is(true));
}