@Test
public void serialize() throws IOException {

	final TreePattern<String> pattern = TreePattern.compile("add($x,$y,1)");
	final byte[] data = IO.object.toByteArray(pattern);
	Assert.assertEquals(IO.object.fromByteArray(data), pattern);
}