public void testSerializableConnectException() throws Exception
{
TestSerializableConnectable connectable = new TestSerializableConnectable();
connectable.setValue(value);
ConnectException e = new ConnectException(new Exception(message), connectable);
e = SerializationTestUtils.testException(e, muleContext);
assertTrue(e.getMessage().contains(message));
Connectable failed = e.getFailed();
assertNotNull("Connectable was not serialized", failed);
assertTrue(failed instanceof TestSerializableConnectable);
assertEquals(value, ((TestSerializableConnectable) failed).getValue());
}