public void testInteger() throws ObjectIOException,
ObjectIOInvalidClassException, ObjectIONotSerializableException,
ObjectIODataRecordNotFoundException,
ObjectIOClassNotFoundException, ObjectIODataCorruptedException,
ClassInfoException, ObjectIOTooBigForSerializationException {
final IObjectOutput objectOutput = new ObjectOutputForBasic(this,
classInfoFactory, proxyManager2, helperBinaryConversion);
final ClassInfo classInfo = classInfoFactory
.getNoProxyClassInfo(Integer.class);
final Integer integer = Integer.valueOf(10);
final StorageInfo storageInfo = new StorageInfo();
final ObjectAndPersistInfo objectAndItsClassInfo =
/**/new ObjectAndPersistInfo(integer, false, classInfo, storageInfo);
objectOutput.prepareWrite(objectAndItsClassInfo);
final byte[] binary = new byte[1000];
final int offset = storageInfo.getHeaderDataSize();
storageInfo.setHeaderDataSize(offset);
// int byte size to skip class name information
objectOutput
.writeBody(binary, offset/*
* bodyBeginOffset for class id
*/, objectAndItsClassInfo, false/* updateOriginalValue */);
// dummy data record identifier for object
final DataRecordIdentifier dataRecordIdentifier = DataRecordIdentifier.LAST;