@Test
public void testToGeographicGeometry() throws Exception {

    // This time we are in north / east order
    String wkt = "GEOGCS[\"GDA94\","
            + " DATUM[\"Geocentric Datum of Australia 1994\","
            + "  SPHEROID[\"GRS 1980\", 6378137.0, 298.257222101, AUTHORITY[\"EPSG\",\"7019\"]],"
            + "  TOWGS84[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], "
            + " AUTHORITY[\"EPSG\",\"6283\"]], "
            + " PRIMEM[\"Greenwich\", 0.0, AUTHORITY[\"EPSG\",\"8901\"]],"
            + " UNIT[\"degree\", 0.017453292519943295], "
            + " AXIS[\"Geodetic latitude\", NORTH], " + " AXIS[\"Geodetic longitude\", EAST], "
            + " AXIS[\"Ellipsoidal height\", UP], " + " AUTHORITY[\"EPSG\",\"4939\"]]";
    CoordinateReferenceSystem gda94 = CRS.parseWKT(wkt);
    
    GeometryFactory gf = new GeometryFactory();
    Point point = gf.createPoint( new Coordinate( -16.4463909341494,130.882672103999, 97.009018073082));
    
    Point world = (Point) JTS.toGeographic( point, gda94 );
    assertEquals( point.getX(), world.getY(), 0.00000005 );
    assertEquals( point.getY(), world.getX(), 0.00000005 );
}