@Test
    public void authentSuccessSingleAttribute() {
        val credentials = new UsernamePasswordCredentials(GOOD_USERNAME, PASSWORD);
        inMemoryProfileService.validate(new CallContext(null, null), credentials);
        val profile = credentials.getUserProfile();
        assertNotNull(profile);
        assertEquals(GOOD_USERNAME, profile.getUsername());
        assertEquals(2, profile.getAttributes().size());
        assertEquals(FIRSTNAME_VALUE, profile.getAttribute(FIRSTNAME));
    }
Tests the {@link InMemoryProfileService}.

@author Elie Roux
@since 2.1.0
pac4j-core/src/test/java/org/pac4j/core/profile/service/InMemoryProfileServiceTests.java