setEndPoint
Method test sample