@Test
public void testReplaceFirst() {

  List<String> list = Arrays.asList(foo, foo, bar);
  ListUtils.replaceIn(list)
      .replace(foo)
      .first()
      .with(bar);
  assertEquals(Arrays.asList(bar, foo, bar), list);
}