AllowedValuesValidation implements Validation { @Override public Set<String> getKnownPaths() { return Sets.newHashSet(path); } AllowedValuesValidation(String path, Object... allowedValues); @Override ValidationResult validate(Config config); @Override String toString(); @Override Set<String> getKnownPaths();  }
@Test public void testKnownPaths() { AllowedValuesValidation v = new AllowedValuesValidation("hello", 1, 2, 3); assertEquals(Sets.newHashSet("hello"), v.getKnownPaths()); }