### Question:
ServiceResourceResolverService { public ResourceResolver getAdminResourceResolver() throws LoginException { final Map<String, Object> authenticationInfo = new HashMap<>(); authenticationInfo.put(ResourceResolverFactory.SUBSERVICE, SUBSERVICE_AECU_ADMIN); return resolverFactory.getServiceResourceResolver(authenticationInfo); }  ResourceResolver getServiceResourceResolver(); ResourceResolver getContentMigratorResourceResolver(); ResourceResolver getAdminResourceResolver();  }### Answer:
@Test public void getAdminResourceResolver() throws LoginException { when(resolverFactory.getServiceResourceResolver(Mockito.any())).thenReturn(resolver); ResourceResolver serviceResolver = service.getAdminResourceResolver(); assertEquals(resolver, serviceResolver); }