@Test
public void testFinalPackage() {

    assertThat(qavNameMatcher.matches("org.slf4j.*", "org.slf4j.Logger"), is(true));
    assertThat(qavNameMatcher.matches("org.slf4j.*", "org.slf4j"), is(false));
    assertThat(qavNameMatcher.matches("org.slf4j.**", "org.slf4j"), is(true));
    assertThat(qavNameMatcher.matches("org.slf4j**", "org.slf4j"), is(true)); // without package dot
    assertThat(qavNameMatcher.matches("org.slf4j**", "org.slf4jOrSo"), is(true)); // without package dot
    assertThat(qavNameMatcher.matches("org.slf4j**", "org.slf4j.Logger"), is(false)); // package dot is missing
}