=act #3490 Don't pass a non-serializable mock object as part of a test (because the test will fail).