Test Data Builders and Object Mother: another look
Constructing objects in tests is usually a painstaking work and usually it produces a lot of repeatable and hard to read code. There are two common solutions for working with complex test data: Object Mother and Test Data Builder . Both has advantages and disadvantages, but (smartly) combined can bring new quality to your tests.