@Test
    public void authentSuccessSingleAttribute() {
        val couchProfileService = new CouchProfileService(couchDbConnector);
        couchProfileService.setPasswordEncoder(PASSWORD_ENCODER);
        val credentials = new UsernamePasswordCredentials(GOOD_USERNAME, PASSWORD);
        couchProfileService.validate(null, credentials);

        val profile = credentials.getUserProfile();
        assertNotNull(profile);
        assertTrue(profile instanceof CouchProfile);
        val couchProfile = (CouchProfile) profile;
        assertEquals(GOOD_USERNAME, couchProfile.getUsername());
        assertEquals(2, couchProfile.getAttributes().size());
        assertEquals(FIRSTNAME_VALUE, couchProfile.getAttribute(FIRSTNAME));
    }
Tests the {@link CouchProfileService}.

@author Elie Roux
@since 2.0.0
pac4j-couch/src/test/java/org/pac4j/couch/profile/service/CouchProfileServiceTests.java