objOut.close();
ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
FSTObjectInput objIn = new FSTObjectInput(is);
// objIn.setReadExternalReadAHead(16000);
TestArray res = (TestArray) objIn.readObject();
for (int i = 0; i < res.bytes1.length; i++) {
assertTrue(res.bytes1[i] == 1);
}
for (int i = 0; i < res.bytes2.length; i++) {
assertTrue(res.bytes2[i] == 2);