public class SimulatedClientTests extends TestCase {
private static final String COLA = "cola";
public void testSharedDocClient() throws Exception {
IDocumentSynchronizationStrategyFactory factory = Activator
.getDefault().getColaSynchronizationStrategyFactory();
assertNotNull(factory);
ID channelId = IDFactory.getDefault().createStringID(COLA);
String text = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
SharedDocClient client1 = new SharedDocClient("client1",factory
.createDocumentSynchronizationStrategy(channelId, true),text);
SharedDocClient client2 = new SharedDocClient("client2",factory
.createDocumentSynchronizationStrategy(channelId, false),text);
client1.setOtherQueue(client2.getQueue());
client2.setOtherQueue(client1.getQueue());