### Question:
InstanceValidationResultImpl extends ValidationResultImpl { public Map<String, ValidationResult> getPropertyResults() { return propertyResults; } InstanceValidationResultImpl(ValidationResult instanceResult, Map<String, ValidationResult> propertyResults); Map<String, ValidationResult> getPropertyResults(); String toJson();  }### Answer:
@Test public void testGetPropertyResults() throws Exception { ValidationResult result = new ValidationResultImpl(true, "detail"); Map<String, ValidationResult> propertyResults = new HashMap<>(); 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()); }