Testing of RESTful logic - yucky code all over place, hard to map logic of vmwareapi