public int add(int arg1, int arg2) { return arg1 + arg2; }
public TestRecord echo(TestRecord record) { return record; }
public ByteBuffer echoBytes(ByteBuffer data) { return data; }
public Void error() throws AvroRemoteException {
if (throwUndeclaredError) throw new RuntimeException("foo");
TestError error = new TestError();
error.message = new Utf8("an error");
throw error;
}