### Question:
DenialConstraint implements Result { public Collection<Predicate> getPredicates() { return Collections.unmodifiableCollection(predicates); } DenialConstraint();  DenialConstraint(Predicate... predicates); @Override void sendResultTo(OmniscientResultReceiver resultReceiver); Collection<Predicate> getPredicates(); @JsonIgnore int getPredicateCount(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); static final String NOT; static final String AND; }### Answer:
@Test public void testConstructor() { Predicate p = mock(Predicate.class); DenialConstraint dc = new DenialConstraint(p, p); assertTrue(dc.getPredicates().contains(p)); }