*/
@Test
public void testUnscopedName() {
// Expected values to be used later in the test.
final String name = "Mercator (variant A)";
final LocalName alias1 = SIS_NAMES.createLocalName(null, "Mercator (1SP)");
final LocalName alias2 = SIS_NAMES.createLocalName(null, "Mercator_1SP");
final LocalName alias3 = SIS_NAMES.createLocalName(null, "CT_Mercator");
assertEquals("Mercator (variant A)", name .toString());
assertEquals("Mercator (1SP)", alias1.toString());
assertEquals("Mercator_1SP", alias2.toString());
assertEquals("CT_Mercator", alias3.toString());
// The test.
final BuilderMock builder = new BuilderMock();
assertSame(builder, builder.addName("Mercator (variant A)")); // EPSG version 7.6 and later.
assertSame(builder, builder.addName("Mercator (1SP)")); // EPSG before version 7.6.