static void checkBot(O bot, S in, S out) { L poem = parsePoem(in); L resp = (L) call(bot, "handle", poem); if (eq(out, "fail")) { assertEmpty(resp); } else { assertStartsWith(resp, parsePoem(out)); } }