tested.log = Logger.getLogger("testlogger");
tested.customTagPersistenceService = Mockito.mock(CustomTagPersistenceService.class);
tested.customTagService = Mockito.mock(CustomTagService.class);
tested.providerService = Mockito.mock(ProviderService.class);
tested.searchClientService = Mockito.mock(SearchClientService.class);
<BUG>tested.authenticationUtilService = Mockito.mock(AuthenticationUtilService.class);
Mockito.when(
tested.authenticationUtilService.getAuthenticatedContributor(
Mockito.anyBoolean())).thenReturn(MOCK_CONTRIB_ID);
tested.authenticationUtilService = Mockito.mock(AuthenticationUtilService.class);
Mockito.when(
tested.authenticationUtilService.isUserInAnyOfRoles(Mockito.anyBoolean(), Mockito.anyString(), Mockito.anyString())).thenReturn(true);</BUG>
return tested;

tested.log = Logger.getLogger("testlogger");
tested.customTagPersistenceService = Mockito.mock(CustomTagPersistenceService.class);
tested.customTagService = Mockito.mock(CustomTagService.class);
tested.providerService = Mockito.mock(ProviderService.class);
tested.searchClientService = Mockito.mock(SearchClientService.class);
tested.authenticationUtilService = Mockito.mock(AuthenticationUtilService.class);
Mockito.when(tested.authenticationUtilService.getAuthenticatedContributor(Mockito.anyBoolean())).thenReturn(
MOCK_CONTRIB_ID);
Mockito.when(
tested.authenticationUtilService.isUserInAnyOfRoles(Mockito.eq(true), Mockito.eq(Role.TAGS_MANAGER),
Mockito.anyString())).thenReturn(true);
Mockito.when(tested.authenticationUtilService.isUserInAnyOfRoles(true, Role.TAGS_MANAGER)).thenReturn(true);
return tested;
