@Test
public void replaceAllFrom_threeMatches() {

  assertThat(first("x").replaceAllFrom("fox x bxr", m -> "yy")).isEqualTo("foyy yy byyr");
  assertThat(first("x").replaceAllFrom("xaxbxxcx", m -> "yy")).isEqualTo("yyayybyyyycyy");
}