create a test adapter for entering an instance and executing a cmd

* added an adapter to the util pacakge
* chooses adapter based on config

Fixes bug 1100639

Change-Id: I7cdbf28ddf7eb82576e89c03cdfeb4ba22f4422c
Merge "create a test adapter for entering an instance and executing a cmd"