new Class<?>[] {thriftClass},
new InvocationHandler() {
@Override
public Object invoke(Object o, Method method, Object[] args) throws Throwable {
System.out.println("Invoking " + method);
Response response = (Response) method.invoke(realThrift, args);
assertTrue(response.isSetResponseCode());
assertNotNull(response.getDetails());
return response;
}
});
}