RequestCycle.get().detach();
}
public void testPageWithPageMapSerialization() throws IOException, ClassNotFoundException
{
DummyPage dummyPage = new DummyPage(PageMap.forName("test"));
woos.writeObject(dummyPage);
ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
WicketObjectInputStream wois = new WicketObjectInputStream(bais);
DummyPage dummyPage2 = (DummyPage)wois.readObject();
Assert.assertEquals(dummyPage.getClass(), dummyPage2.getClass());
}