}
public void testReading(){
// A term
byte[] input = new byte[]{1, 2, 4, 108, 105, 110, 101, 1, 2, 3, 98, 111, 120, 1, 1, 4, 114, 101, 99, 116, 2, 2, 1, 2, 6, 115, 113, 117, 97, 114, 101, 2, 4, 2, 3, 1, 1, 6, 99, 105, 114, 99, 108, 101, 2, 6};
ATerm expectedResult = pureFactory.parse("line(box(rect(2), square(4, 3)), circle(6))");
read(input, expectedResult);
// A shared term
input = new byte[]{1, 2, 4, 108, 105, 110, 101, 1, 0, 4, 108, 105, 110, 101, -128, 1};
expectedResult = pureFactory.parse("line(line(), line())");