serialize object for unit testing
问题 Assuming in a unit test I need to have an object all of 50 fields of which are set up with some values. I don't want to manually set up all this fields, as it takes time and annoying... Somehow I need to get an instance where all the fields are initialized by some not-null values. and I had an idea - what if I will debug some code, at some point i will get a working instance of this object with some data set up - and I just will serialize it to the disk. Then I will put this file to test