### Question:
SetCondition extends BasicCondition<T, SetCondition<T, E>> implements SetChecks<T, E, SetCondition<T, E>> { @Override public SetCondition<T, E> isNotEmpty() { require(this.subject).isNotNull(); if (this.subject.isEmpty()) { DbcAssertionError.throwNew(new IllegalArgumentException("Expected non empty set"), this.message); } return result(); } SetCondition(T subject); @Override SetCondition<T, E> isNotEmpty(); @Override SetCondition<T, E> hasSize(int size); @Override SetCondition<T, E> hasSizeBetween(int startInclusive, int endInclusive); @Override SetCondition<T, E> hasSizeGreaterThan(int minSizeExclusive); @Override SetCondition<T, E> hasSizeGreaterThanOrEqual(int minSize); @Override SetCondition<T, E> hasSizeLessThan(int maxSizeExclusive); @Override SetCondition<T, E> hasSizeLessThanOrEqual(int maxSize); @Override SetCondition<T, E> contains(E value);  }### Answer:
@Test public void isNotEmpty() throws Exception { SetCondition<Set<String>, String> condition = new SetCondition<>(this.input); condition.isNotEmpty(); SetCondition<Set<String>, String> badCondition = new SetCondition<>(new LinkedHashSet<>()); Assertions.assertThatThrownBy(badCondition::isNotEmpty) .isInstanceOf(DbcAssertionError.class) .hasCauseInstanceOf(IllegalArgumentException.class); }