compareEndPoints
Method test sample