We're moving from JMock to Mockito from some time now and so all new unit/integration tests must be written using Mockito (if they need mocks). You can add tests in ``XWikiDocumentMockitoTest`` for instance.