setEndPoint Method test sample