assertEquals(1, resourceList.size());
assertTrue(resourceList.contains(resourceId));
}
public void testAddMultipleSession() throws EntityFormatException {
TestSessionContext sessionContext1 = TestSessionContext.createSessionContext(EntityImpl.parse("me1@test"));
String resourceId1 = resourceRegistry.bindSession(sessionContext1);
TestSessionContext sessionContext2 = TestSessionContext.createSessionContext(EntityImpl.parse("me2@test"));
String resourceId2 = resourceRegistry.bindSession(sessionContext2);
assertNotNull(resourceId2);
List<String> resourceList = resourceRegistry.getResourcesForSessionInternal(sessionContext1);
assertEquals(1, resourceList.size());
assertTrue(resourceList.contains(resourceId1));