}
public void testSubstitution() throws Exception
{
Level1 level1 = new Level1();
DataContainer container = new DataContainer(this.getClass().getClassLoader(),new Substitution(),false,null);
ObjectOutput output =container.getOutput();
output.writeObject(level1);
output.flush();
Level1 newLevel1 = (Level1)container.getInput().readObject();
assertEquals("modified",newLevel1.getValue());
assertEquals("modified",newLevel1.getLevel2().getValue());
assertEquals("modified",newLevel1.getLevel2().getLevel3().getValue());
}