I believe they were testing the New Governments resolve,was he like the Ex-PM Manmohan Singh who will not talk,close his eyes and let it pass over, or is Modi Proactive?well they got their answer i think..
Because,No Country is that foolish to Send its Premier to the hosting nation,while invading the same host nation territory all this happened when the Meeting was taking place.They wanted to play from a dominant position and see if Modi stands up or wilts under pressure.
They can't expect us to close our eyes and act as nothing happened when they routinely venture into India's Territory along with arming Pakistan against us and surrounding us with their "String of Pearls" Strategy,while talking sweet niceties to us in BRICS and other forums.