@Test
public void getAdminResourceResolver() throws LoginException {

    when(resolverFactory.getServiceResourceResolver(Mockito.any())).thenReturn(resolver);
    ResourceResolver serviceResolver = service.getAdminResourceResolver();
    assertEquals(resolver, serviceResolver);
}