* Tests the {@link CommonCRS#geocentric()} method.
*/
@Test
@DependsOnMethod("testGeographic3D")
public void testGeocentric() {
final GeocentricCRS crs = CommonCRS.WGS72.geocentric();
Validators.validate(crs);
assertEquals("WGS 72", crs.getName().getCode());
assertSame (CommonCRS.WGS72.geographic().getDatum(), crs.getDatum());
assertNotSame(CommonCRS.WGS84.geographic().getDatum(), crs.getDatum());
final CoordinateSystem cs = crs.getCoordinateSystem();
final String name = cs.getName().getCode();
assertTrue(name, name.startsWith("Earth centred"));
assertEquals("dimension", 3, cs.getDimension());
assertEquals(AxisDirection.GEOCENTRIC_X, cs.getAxis(0).getDirection());
assertEquals(AxisDirection.GEOCENTRIC_Y, cs.getAxis(1).getDirection());