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