@Test
public void testFilterWithPackageNames() {

    NodeNameInFilter filter = new NodeNameInFilter("foo.*");
    assertThat(filter.isAccepted(new Node("foo.bar")), is(true));
    assertThat(filter.isAccepted(new Node("other.foo.bar")), is(false));
}