@Test
public void serialize() throws IOException {

	final TreeRewriteRule<String> rule =
		TreeRewriteRule.parse("mul($x,$x) -> pow($x,2)");
	final byte[] data = IO.object.toByteArray(rule);
	Assert.assertEquals(IO.object.fromByteArray(data), rule);
}