@Test
public void replaceAllFrom_twoMatches() {

  assertThat(first('o').replaceAllFrom("foo", m -> "xx")).isEqualTo("fxxxx");
  assertThat(first('o').replaceAllFrom("ofo", m -> "xx")).isEqualTo("xxfxx");
  assertThat(first('o').replaceAllFrom("oof", m -> "xx")).isEqualTo("xxxxf");
}