void (String name, Set<String> actual, String[] expected) { for (String path : expected) { if (!actual.remove(path)) { Assert.fail("'" + path + "' is not " + name + ". " + name + ": " + new HashSet<>(actual)); } } if (!actual.isEmpty()) { Assert.fail("'" + actual.iterator().next() + "' must not be " + name); } }