public static WebApplicationService getService(final String id) {
        val svc = mock(WebApplicationService.class);
        when(svc.getId()).thenReturn(id);
        return svc;
    }
This is {@link MultifactorAuthenticationTestUtils}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-authentication-mfa-api/src/test/java/org/apereo/cas/authentication/mfa/MultifactorAuthenticationTestUtils.java