If you want the class to be serializable, you'll need to test it, just as you would test a class that directly implements serializable.
若您希望类可串行化,就需要测试它,这与您需要测试一个直接实现了Serializable的类相同。
Even if a class implements Serializable, there's no guarantee that it can be serialized.
即使一个类实现了Serializable,依然不能保证它能够串行化。
I added implements Serializable to the class signature of QualifiedName and the test then passed.
我为QualifiedName的类签名添加了implements Serializable,这一次测试顺利通过。
应用推荐