compareEndPoints Method test sample