assertEquals("apple", slave.getComponentInstance("fruit"));
assertEquals("apple239", ((ThingThatTakesParamsInConstructor) slave.getComponentInstance("thing")).getValue());
// test that we can replay once more
MutablePicoContainer anotherSlave = new DefaultPicoContainer();
recorder.replay(anotherSlave);
assertEquals("apple", anotherSlave.getComponentInstance("fruit"));
assertEquals("apple239", ((ThingThatTakesParamsInConstructor) anotherSlave.getComponentInstance("thing")).getValue());
}
public void testRecorderWorksAfterSerialization() throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {