fra = (LegalConstraints) FrenchProfile.toAFNOR(std);
assertNotSame("Expected a copy.", std, fra);
assertSame ("Already an AFNOR instance.", fra, FrenchProfile.toAFNOR(fra));
assertEquals ("Some legal constraints.", getSingleton(fra.getUseLimitations()).toString());
std = new DefaultSecurityConstraints("Some security constraints.");
fra = (SecurityConstraints) FrenchProfile.toAFNOR(std);
assertNotSame("Expected a copy.", std, fra);
assertSame ("Already an AFNOR instance.", fra, FrenchProfile.toAFNOR(fra));
assertEquals ("Some security constraints.", getSingleton(fra.getUseLimitations()).toString());
}