@Test
public void testReadObjectOrdinary() throws Exception {

	UnsyncByteArrayOutputStream unsyncByteArrayOutputStream =
		new UnsyncByteArrayOutputStream();
	unsyncByteArrayOutputStream.write(SerializationConstants.TC_OBJECT);
	ObjectOutputStream objectOutputStream = new AnnotatedObjectOutputStream(
		unsyncByteArrayOutputStream);
	Date date = new Date(123456);
	objectOutputStream.writeObject(date);
	ByteBuffer byteBuffer =
		unsyncByteArrayOutputStream.unsafeGetByteBuffer();
	Deserializer deserializer = new Deserializer(byteBuffer);
	Object object = deserializer.readObject();
	Assert.assertTrue(object instanceof Date);
	Assert.assertEquals(date, object);
}