This looks odd. Don't set doMock to true unless it's true?