public class SimulatorTest extends ContextTestSupport {
protected Context createJndiContext() throws Exception {
JndiContext answer = new JndiContext();
answer.bind("foo", new MyBean("foo"));
answer.bind("bar", new MyBean("bar"));
return answer;
}
public void testReceivesFooResponse() throws Exception {
assertRespondsWith("foo", "Bye said foo");