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