@Test
    void verifyFailsOperation() {
        val inweboService = mock(InweboService.class);

        val response = new InweboDeviceNameResponse();
        response.setDeviceName("DeviceName");
        response.setResult(InweboResult.OK);

        when(inweboService.authenticateExtended(anyString(), anyString())).thenReturn(response);
        val handler = new InweboAuthenticationHandler(mock(ServicesManager.class),
            PrincipalFactoryUtils.newPrincipalFactory(),
            new InweboMultifactorAuthenticationProperties(), inweboService,
            new DirectObjectProvider<>(mock(MultifactorAuthenticationProvider.class)));
        val credential = new InweboCredential("token");
        assertThrows(FailedLoginException.class, () -> handler.authenticate(credential, mock(Service.class)));
    }
This is {@link InweboAuthenticationHandlerTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-inwebo-mfa/src/test/java/org/apereo/cas/support/inwebo/authentication/InweboAuthenticationHandlerTests.java