Added validation to QueryEntityDeserializer

Change-Id: I169aab35421eff5278bfdc826b39eb6ce6e62ed0
Implemented stubbing in QueryEntity

Change-Id: Iea6fe41bcf6dc1b5e5437dfae5d5152df91e1df6
Merge "Added validation to QueryEntityDeserializer"
Merge "Implemented stubbing in QueryEntity"