As a CorDapp developer, if my app requires custom serializers, I can't unit test my flows without using Driver.
Steps to reproduce:
Run the test, it should succeed
Comment out the existing test using Driver: flow with custom serializer by rpc
Add a new test using mock network:
The new test should succeed.
Test fails with:
java.io.NotSerializableException: Class "class net.corda.contracts.serialization.custom.Currantsy" is not on the whitelist or annotated with @CordaSerializable.