isn t this mocking more than was originally there  that is  instead of mocking  get guest xml as a unit  you are now mocking every little piece inside of  get guest xml and letting it call down instead  is that what you intended  edit  i am clearly late to this party  so feel free to ignore me  i would have thought  get guest xml would be tested by itself as a unit and then mocked everywhere else  i am guessing the old testing was using a faulty dummy xml which was hiding the bug 