@Test
public void testMatchingKeyAndValueRegexDoesMatch() {

    Map<String,String> itemtags = new HashMap<String,String>() {{
        put("one","four-five-six");
    }};
    TagFilter tfLeft = new TagFilter("one:'four-.*'");
    assertThat(tfLeft.matches(itemtags).matched()).isTrue();
    TagFilter tfInner = new TagFilter("one:'.*-five-.*'");
    assertThat(tfInner.matches(itemtags).matched()).isTrue();
    TagFilter tfRight = new TagFilter("one:'.*-six'");
    assertThat(tfRight.matches(itemtags).matched()).isTrue();
}