Call call = new Call(new Service());
call.setTransport(transport);
String ret = (String)call.invoke("allowed", null);
assertEquals("Return didn't match", MESSAGE, ret);
try {
ret = (String)call.invoke("disallowed", null);
} catch (Exception e) {
// Success, we shouldn't have been allowed to call that.
return;
}
fail("Successfully called disallowed method!");