refactor: mockito helper methods