@Test
public void checkServiceResolver_failMigrationServiceException() throws LoginException {

    when(resolverService.getContentMigratorResourceResolver()).thenThrow(LoginException.class);
    Result result = check.execute();
    assertEquals(Result.Status.CRITICAL, result.getStatus());
}