/**
* Makes sure that the authority factory has the proper name.
*/
public void testAuthority() {
CRSAuthorityFactory factory;
Citation authority;
// Tests the official factory.
factory = ReferencingFactoryFinder.getCRSAuthorityFactory("EPSG", null);
authority = factory.getAuthority();
assertNotNull(authority);
assertEquals("European Petroleum Survey Group", authority.getTitle().toString(Locale.US));
assertTrue(Citations.identifierMatches(authority, "EPSG"));
// Tests the modified factory.
factory = new OrderedAxisAuthorityFactory("EPSG", null, null);
authority = factory.getAuthority();