@Test
public void getServiceResourceResolver() throws LoginException {

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