// it is expected that this call returns a reference to Gamma that
// reuses the established Conversation
gammaRef = beta.getRef();
// no Conversation exists
Conversation con = gammaRef.getConversation();
if (con == null) {
System.out.println("Alpha1: Conversation to gamma is null");
} else {
System.out
.println("Alpha1: Conversation to gamma exists. conversationId="
+ con.getConversationID());
conversationId1 = con.getConversationID();
}
// this call should reuse a Conversation, but as none exists it
// creates a new conversation
gammaRef.getService().doSomething();
gammaRef.getService().doSomething();
gammaRef.getService().doSomething();
con = gammaRef.getConversation();
if (con == null) {
System.out.println("Alpha2: Conversation to gamma is null");
} else {
System.out
.println("Alpha2: Conversation to gamma exists. conversationId="
+ con.getConversationID());
conversationId2 = con.getConversationID();
}
boolean testPassed = conversationId1.equals(conversationId2);
if (conversationId0 == null){