@Test
public void testJoining2Bookend() {

  List<? extends String> list = Stream.of(foo, foo)
      .collect(joining(barSupplier, barSupplier, barSupplier));
  assertEquals(Arrays.asList(bar, foo, bar, foo, bar), list);
}