public void testCalendarJBoss() throws Exception
{
Calendar calendar = new GregorianCalendar();
calendar.setTimeInMillis(System.currentTimeMillis());
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
JBossObjectOutputStream os = new JBossObjectOutputStream(byteOut );
os.writeObject(calendar);
os.flush();
os.close();
ByteArrayInputStream byteInpt = new ByteArrayInputStream(byteOut.toByteArray());
JBossObjectInputStream is = new JBossObjectInputStream(byteInpt);
Calendar c = (Calendar) is.readObject();
c.clone();