Unfortunately we couldn't get mocks to work, so I've added an xxx comment.