/**
* Tests {@link FrenchProfile#toAFNOR(ReferenceSystem, boolean)}.
*/
@Test
public void testReferenceSystemToAFNOR() {
ReferenceSystem std, fra;
std = new ReferenceSystemMetadata(new ImmutableIdentifier(null, "EPSG", "4326"));
fra = FrenchProfile.toAFNOR(std, false);
assertInstanceOf("Expected AFNOR instance.", DirectReferenceSystem.class, fra);
assertSame("Already an AFNOR instance.", fra, FrenchProfile.toAFNOR(fra));