### Question:
CompositePropertyInclusionPolicy implements PropertyInclusionPolicy<T> { @Override public boolean include(String key, T object) { for (PropertyInclusionPolicy<T> policy : policies) { if (!policy.include(key, object)) { return false; } } return true; } protected  CompositePropertyInclusionPolicy(PropertyInclusionPolicy<T>[] policies); @Override boolean include(String key, T object); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void whenAllVoteYesThenTrueIsReturned() { assertTrue(CompositeNodePropertyInclusionPolicy.of(IncludeAllNodeProperties.getInstance(), IncludeAllNodeProperties.getInstance()).include("test", null)); assertTrue(CompositeRelationshipPropertyInclusionPolicy.of(IncludeAllRelationshipProperties.getInstance(), IncludeAllRelationshipProperties.getInstance()).include("test", null)); }
@Test public void whenOneVotesNoThenFalseIsReturned() { assertFalse(CompositeNodePropertyInclusionPolicy.of(IncludeNoNodeProperties.getInstance(), IncludeAllNodeProperties.getInstance()).include("test", null)); assertFalse(CompositeRelationshipPropertyInclusionPolicy.of(IncludeAllRelationshipProperties.getInstance(), IncludeNoRelationshipProperties.getInstance()).include("test", null)); }