@Test
void basic() {

    final LocationNameMatcher m = new LocationNameMatcher(
            asList(Location.of("A"), Location.of("a.B"), Location.of("Y#c")),
            asList("c", "d"));
    assertTrue(m.matches("c", null, "A", null, true));
    assertTrue(m.matches("d", null, "a.B", null, true));
    assertTrue(m.matches("d", null, "Y", "c", true));
    assertTrue(m.matches("d", null, "A", "x", true));
    assertFalse(m.matches("e", null, "Y", "c", true));
    assertFalse(m.matches("d", null, "Y", "d", true));
}