@Test
public void matchOverflowNumber() {

    Substitution subs = new MatchResultSubstitution(r1);
    // Number $12345678901234567890 exceeds the integer range, which causes
    // a negative number
    assertEquals("xx$12345678901234567890yy$2zz", subs.substitute("xx$12345678901234567890yy$2zz"));
}