Method must be protected to be mocked in unit tests