@Test
public void testValidation() {
DynamicStringProperty prop = new DynamicStringProperty("abc", "default") {
public void validate(String newValue) {
throw new ValidationException("failed");
}
};
try {
ConfigurationManager.getConfigInstance().setProperty("abc", "new");
fail("ValidationException expected");