### Question:
PedigreeQueryDecorator { public boolean isParentOfAffected(Person person) { for (Person member : pedigree.getMembers()) if (member.getFather() == person || member.getMother() == person) return true; return false; } PedigreeQueryDecorator(Pedigree pedigree); Pedigree getPedigree(); boolean isParentOfAffected(Person person); ImmutableSet<String> getUnaffectedNames(); ImmutableSet<String> getParentNames(); ImmutableSet<String> getAffectedFemaleParentNames(); ImmutableSet<String> getAffectedMaleParentNames(); ImmutableList<Person> getParents(); int getNumberOfParents(); int getNumberOfAffecteds(); int getNumberOfUnaffecteds(); ImmutableMap<Person, ImmutableList<Person>> buildSiblings();  }### Answer:
@Test public void testIsParentOfAffected() { Assert.assertTrue(decorator.isParentOfAffected(pedigree.getMembers().get(0))); Assert.assertTrue(decorator.isParentOfAffected(pedigree.getMembers().get(1))); Assert.assertFalse(decorator.isParentOfAffected(pedigree.getMembers().get(2))); Assert.assertFalse(decorator.isParentOfAffected(pedigree.getMembers().get(3))); }