### Question:
When implements Shape { public static When when(final Shape test, final Shape pass) { return new When(test, pass, and()); } private  When(final Shape test, final Shape pass, final Shape fail); static When when(final Shape test, final Shape pass); static When when(final Shape test, final Shape pass, final Shape fail); Shape getTest(); Shape getPass(); Shape getFail(); @Override T map(final Probe<T> probe); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void testRejectFilteringConstraintsInTests() { assertThatThrownBy(() -> when(and(Clazz.clazz("resource")), and())) .isInstanceOf(UnsupportedOperationException.class); }