@Test
public void splitThenTrim_intoTwoParts_cannotSplit() {

  IllegalArgumentException thrown =
      assertThrows(
          IllegalArgumentException.class,
          () -> first('=').splitThenTrim("foo:bar", String::concat));
  assertThat(thrown).hasMessageThat().contains("foo:bar");
}