public void testNoMatchOut(Pattern pattern, String incoming) {
assertNull(pattern.matchOutgoing(incoming), incoming);
}
public void testMatchIn(Pattern pattern, String incoming, String expected) {
Rewrite rewrite = pattern.matchIncoming(incoming);
assertTrue(rewrite.isMatch(), incoming);
assertEquals(rewrite.rewrite(), expected);
}