    @Test
    public void testResolveServiceWithOnlyAuthnMethodAttribute() throws Exception {

        final WebApplicationService was = getTargetService();
        final Authentication auth = getAuthentication(true);

        final RegisteredService rswa = TestUtils.getRegisteredService("test1");

        final DefaultRegisteredServiceProperty prop = new DefaultRegisteredServiceProperty();
        prop.setValues(Collections.singleton(CAS_AUTHN_METHOD));
        rswa.getProperties().put(MultiFactorAuthenticationSupportingWebApplicationService.CONST_PARAM_AUTHN_METHOD, prop);

        final DefaultRegisteredServiceMfaRoleProcessorImpl resolver = new DefaultRegisteredServiceMfaRoleProcessorImpl(
                getMFWASF(was), getAMCP(), getServicesManager(rswa));

        final List<MultiFactorAuthenticationRequestContext> result = resolver.resolve(auth, was);
        assertNotNull(result);
        assertEquals(0, result.size());
    }