@Test
public void toDirectPosition() {

    Coordinate c = new Coordinate(40,40);
    DirectPosition wrapper = JTS.toDirectPosition(c, DefaultGeographicCRS.WGS84 );
    
    GeneralDirectPosition expected = new GeneralDirectPosition( DefaultGeographicCRS.WGS84);
    expected.setOrdinate(0,40);
    expected.setOrdinate(1,40);
    
    assertEquals( expected, wrapper );
}