ExactlyOnePathExistsValidation implements Validation { @Override public Set<String> getKnownPaths() { return paths; } ExactlyOnePathExistsValidation(String... paths);  ExactlyOnePathExistsValidation(ConfigValueType type, String... paths); @Override ValidationResult validate(Config config); @Override String toString(); @Override Set<String> getKnownPaths();  }
@Test public void testKnownPaths() { Validation v = new ExactlyOnePathExistsValidation("hello", "world"); assertEquals(Sets.newHashSet("hello", "world"), v.getKnownPaths()); }