@Test
public void testSupportedAuthorities() {

    final Set<String> withoutAlias = CRS.getSupportedAuthorities(false);
    assertTrue (withoutAlias.contains("CRS"));
    assertTrue (withoutAlias.contains("AUTO2"));
    assertTrue (withoutAlias.contains("urn:ogc:def"));
    assertTrue (withoutAlias.contains("http://www.opengis.net/gml"));
    assertTrue (withoutAlias.contains("http://www.opengis.net/def"));
    assertFalse(withoutAlias.contains("AUTO"));
    assertFalse(withoutAlias.contains("urn:x-ogc:def"));
    final Set<String> withAlias = CRS.getSupportedAuthorities(true);
    assertTrue (withAlias.containsAll(withoutAlias));
    assertFalse(withoutAlias.containsAll(withAlias));
    assertTrue (withAlias.contains("AUTO"));
    assertTrue (withAlias.contains("urn:x-ogc:def"));
}