*/
public class SerializableTestCase extends AbstractProxyTest
{
public void testSerializable() throws Exception
{
Serializable object = (Serializable) assertCreateProxy(new TestManagedConnectionFactory(), Serializable.class);
byte[] bytes = serialize(object);
Object result = deserialize(bytes);
assertNotNull(result);
assertTrue(result instanceof TestManagedConnectionFactory);
TestManagedConnectionFactory mcf = (TestManagedConnectionFactory) result;
TestConnectionManager cm = new TestConnectionManager();
Object cf = mcf.createConnectionFactory(cm);
assertTrue(cm == cf);
Method method = SimpleInterceptor.invoked;
assertNotNull(method);
assertEquals("createConnectionFactory", method.getName());
}