* @param iface adapter interface
* @throws Exception on errors
*/
private void prepareTests(Class iface) throws Exception {
remoteFactory = new ServerAdapterFactory();
localFactory = new ClientAdapterFactory();
methods = new HashMap();
Method[] m = iface.getDeclaredMethods();
for (int i = 0; i < m.length; i++) {
methods.put(m[i].getName(), m[i]);