QPID-7612 : Fix mocking and allow parent to be null so that tests pass
4 files changed