byte[] byteArray = byteOut.toByteArray();
System.out.println(myTest.getClass().getName() +" produced " + byteArray.length + " on JBossSerialization");
ByteArrayInputStream byteInput = new ByteArrayInputStream(byteArray);
JBossObjectInputStream input = new JBossObjectInputStream(byteInput);
Object value = input.readObject();
assertNotSame(myTest,value);
if (!(myTest instanceof String) && !(myTest instanceof String[]))
{
assertSame(myTest.getClass(),value.getClass());