@Test
public void replaceAllFrom_oneMatch() {

  assertThat(first('f').replaceAllFrom("foo", m -> "xx")).isEqualTo("xxoo");
  assertThat(first('f').replaceAllFrom("afoo", m -> "xx")).isEqualTo("axxoo");
  assertThat(first('f').replaceAllFrom("oof", m -> "xx")).isEqualTo("ooxx");
}