@Test
public void testFirstIndexOf() {

  List<String> list = new ArrayList<>();
  list.add("1");
  list.add("12");
  list.add("123");
  assertAll(
      () -> assertEquals(-1, ListUtils.firstIndexOf(list, str -> str.startsWith("0"))), // NOPMD
      () -> assertEquals(0, ListUtils.firstIndexOf(list, str -> str.equals("1"))),      // NOPMD
      () -> assertEquals(1, ListUtils.firstIndexOf(list, str -> str.length() == 2)),
      () -> assertEquals(2, ListUtils.firstIndexOf(list, str -> str.endsWith("3")))
  );
}