@Test
    public void testRestoreProfileBadType() {
        final ProfileDefinition definition = new CommonProfileDefinition();
        definition.setRestoreProfileFromTypedId(true);
        val profile = definition.newProfile(String.class.getName() + "#");
        assertTrue(profile instanceof CommonProfile);
    }
Tests {@link CommonProfileDefinition}.

@author Jerome LELEU
@since 5.0.0
pac4j-core/src/test/java/org/pac4j/core/profile/definition/CommonProfileDefinitionTest.java