@Test public void flatMap_bothPresent_mapperReturnsNonNull() {

  assertThat(flatMapBoth(Optional.of("foo"), Optional.of("bar"), (a, b) -> Optional.of(a + b)))
      .isEqualTo(Optional.of("foobar"));
}