@Test
public void testGetPropertyResults() throws Exception {

  ValidationResult result = new ValidationResultImpl(true, "detail");
  Map<String, ValidationResult> propertyResults = new HashMap<String, ValidationResult>();
  propertyResults.put("foo", new ValidationResultImpl(true, "foo detail"));
  propertyResults.put("bar", new ValidationResultImpl(false, "bar detail"));
  InstanceValidationResultImpl instanceValidationResult = new InstanceValidationResultImpl(result, propertyResults);
  propertyResults = instanceValidationResult.getPropertyResults();
  Assert.assertEquals(2, propertyResults.size());
  Assert.assertTrue(propertyResults.containsKey("foo"));
  Assert.assertTrue(propertyResults.containsKey("bar"));
  Assert.assertTrue(propertyResults.get("foo").isValid());
  Assert.assertFalse(propertyResults.get("bar").isValid());
}