*/
@Test
public void testSfsbSessionPersistenceBetweenInvocations() throws Throwable
{
// Lookup a new instance
StatefulLocalBusiness bean1 = this.lookupLocalSfsb();
// Initialize a counter
int counter1 = bean1.getNextCounter();
// Ensure invocation succeeded
assertEquals("Counter should have been started at 1", 1, counter1);
// Ensure counter is incremented in same session
counter1 = bean1.getNextCounter();
assertEquals("Counter should have been incremented", 2, counter1);
// Lookup a new instance
StatefulLocalBusiness bean2 = this.lookupLocalSfsb();
// Initialize a new counter for this session
int counter2 = bean2.getNextCounter();
// Ensure sessions have not overlapped
assertEquals("Counter for new session should have been started at 1", 1, counter2);
}