I am trying to testfor a donkey in Minecraft, but if I do /testfor @e[type=EntityHorse] {Type:2}\
/testfor @e[type=EntityHorse] {Type:2}
then it won't work. The only way I can think of doing it is testing if the donkey has anything in it'sits chest inventory, but I don't want the player to be able to assess the chest on the donkey, so would there be any way to maybe have a locked chest on a donkey (Probably not thought)? Also, how would I testfor if the donkey was being ridden by a player?