@Test
public void testAddIfNotPresentNoIndex() {

  List<String> list = new ArrayList<>();
  list.add(foo);
  assertAll(
      () -> assertFalse(ListUtils.addIfNotPresent(list, foo)),
      () -> assertTrue(ListUtils.addIfNotPresent(list, bar)),
      () -> assertFalse(ListUtils.addIfNotPresent(list, bar)),
      () -> assertEquals(2, list.size())
  );
}