@BeforeEach
    void setUp() {
        val casProperties = new CasConfigurationProperties();

        val certificate = new SpringResourceProperties();
        certificate.setLocation(new ClassPathResource("clientcert.p12"));
        val clientCertificate = new ClientCertificateProperties();
        clientCertificate.setCertificate(certificate);
        clientCertificate.setPassphrase("password");

        val inwebo = casProperties.getAuthn().getMfa().getInwebo();
        inwebo.setClientCertificate(clientCertificate);

        serviceApiPort = RandomUtils.nextInt(4000, 9999);
        inwebo.setServiceApiUrl("http://localhost:" + serviceApiPort);

        inwebo.setConsoleAdminUrl("http://localhost:8288");

        val sslContext = SSLUtils.buildSSLContext(clientCertificate);
        service = new InweboService(casProperties, mock(InweboConsoleAdmin.class), sslContext);
        assertNotNull(service.getCasProperties());
        assertNotNull(service.getConsoleAdmin());
        assertNotNull(service.getContext());
        when(service.getConsoleAdmin().loginQuery(anyLong())).thenReturn(new LoginQueryResult());
    }
Tests {@link InweboService}.

@author Jerome LELEU
@since 6.4.0
support/cas-server-support-inwebo-mfa/src/test/java/org/apereo/cas/support/inwebo/service/InweboServiceTests.java