Recursive creation of subresource container objects
Removing private methods from ResourceMock prototype