### Question:
CompositeEntityInclusionPolicy extends BaseEntityInclusionPolicy<E> implements EntityInclusionPolicy<E> { @Override public boolean include(E object) { for (T policy : policies) { if (!policy.include(object)) { return false; } } return true; } protected  CompositeEntityInclusionPolicy(T[] policies); @Override boolean include(E object); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void whenAllVoteYesThenTrueIsReturned() { assertTrue(CompositeNodeInclusionPolicy.of(IncludeAllNodes.getInstance(), IncludeAllNodes.getInstance()).include(null)); assertTrue(CompositeRelationshipInclusionPolicy.of(IncludeAllRelationships.getInstance(), IncludeAllRelationships.getInstance()).include(null)); }
@Test public void whenOneVotesNoThenFalseIsReturned() { assertFalse(CompositeNodeInclusionPolicy.of(IncludeNoNodes.getInstance(), IncludeAllNodes.getInstance()).include(null)); assertFalse(CompositeRelationshipInclusionPolicy.of(IncludeAllRelationships.getInstance(), IncludeNoRelationships.getInstance()).include(null)); }