if (dataObject instanceof String || dataObject instanceof String[] || dataObject instanceof TestReadResolve)
{
return;
}
System.out.println("Testing " + dataObject.getClass().getName());
DataContainer container = new DataContainer(null, null, null, false);
ObjectOutput output = container.getOutput();
output.writeObject(dataObject);
output.flush();
container.flush();
TestThread threads[] = new TestThread[100];
for (int i=0;i<threads.length;i++)
{
ObjectInput input = container.getInput();
Object newObject = input.readObject();
assertNotSame(dataObject, newObject);
assertEquals(dataObject,newObject);
threads[i] = new TestThread(container.cloneContainer(),newObject);
}
for (int i=0;i<threads.length;i++)
{
threads[i].start();