public String testConversation() { String value = bean.getValue(); if (!"foo".equals(value)) { throw new IllegalStateException("bean's value was not foo"); } return conversation.getId(); }
public String beginConversation() { conversation.begin(); conversation.setTimeout(500); bean.setValue("foo"); return conversation.getId(); }