complete test method with stub class used for serialization