I need to test some variables of complex object eg.
Object - Person |->Name |->Address | |->Street | |->City | |->Zip | |->Apt_num |->Interests | |->Sports | |->Music | |->Movies |->Other1 | |->x1 | |->x2 |->Other2
For above objet I want to write unit tests which will test different variables of Person object eg. city, zip, apt, x1, etc. In above object Name, Address, Interests etc are also objects and some other objects. Child objects in person can be null. I am using testng to write test. Is there a good way by which I can write dataProvider for above object and tweak variables.