Conditions { @NonNull public static Condition all(@NonNull final Condition... conditions) { return composite(conditions, trueCondition(), falseCondition()); } private  Conditions(); @NonNull static Condition trueCondition(); @NonNull static Condition falseCondition(); @NonNull static Condition staticCondition(final boolean value); @NonNull static Condition not(@NonNull final Condition condition); @NonNull static Condition any(@NonNull final Condition... conditions); @NonNull static Condition all(@NonNull final Condition... conditions); @NonNull static Condition predicateAsCondition(@NonNull final Predicate<T> predicate,
      @NonNull final Supplier<? extends T> supplier);  }
@Test public void shouldReturnOriginalConditionIfAllOfOne() { assertThat(all(mockConditionFalse), is(sameInstance(mockConditionFalse))); }
@Test public void shouldReturnTrueForAllWithNonStaticTrueConditions() { assertThat(all(mockConditionTrue, mockConditionTrue), applies()); }
@Test public void shouldReturnFalseForAllWithNonStaticOneFalseCondition() { assertThat(all(mockConditionTrue, mockConditionFalse), doesNotApply()); }