Queue[] queues = new Queue[16];
//condition1
queues[0] = new MessagingQueue(1, "sub1", channelIDManager.getID(), ms, pm, false, -1, null, false);
queues[0].activate();
boolean added = office1.addBinding(new Binding(new SimpleCondition("condition1"), queues[0], false), false);
assertTrue(added);
queues[1] = new MessagingQueue(1, "sub2", channelIDManager.getID(), ms, pm, false, -1, null, true);
queues[1].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition1"), queues[1], false), false);
assertTrue(added);
queues[2] = new MessagingQueue(2, "sub3", channelIDManager.getID(), ms, pm, false, -1, null, false);
queues[2].activate();
added = office2.addBinding(new Binding(new SimpleCondition("condition1"), queues[2], false), false);
assertTrue(added);
queues[3] = new MessagingQueue(2, "sub4", channelIDManager.getID(), ms, pm, false, -1, null, true);
queues[3].activate();
added = office2.addBinding(new Binding(new SimpleCondition("condition1"), queues[3], false), false);
assertTrue(added);
queues[4] = new MessagingQueue(2, "sub5", channelIDManager.getID(), ms, pm, true, -1, null, false);
queues[4].activate();
added = office2.addBinding(new Binding(new SimpleCondition("condition1"), queues[4], false), false);
assertTrue(added);
queues[5] = new MessagingQueue(1, "sub6", channelIDManager.getID(), ms, pm, false, -1, null, true);
queues[5].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition1"), queues[5], false), false);
assertTrue(added);
queues[6] = new MessagingQueue(1, "sub7", channelIDManager.getID(), ms, pm, true, -1, null, false);
queues[6].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition1"), queues[6], false), false);
assertTrue(added);
queues[7] = new MessagingQueue(1, "sub8", channelIDManager.getID(), ms, pm, true, -1, null, true);
queues[7].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition1"), queues[7], false), false);
assertTrue(added);
//condition2
queues[8] = new MessagingQueue(1, "sub9", channelIDManager.getID(), ms, pm, false, -1, null, false);
queues[8].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition2"), queues[8], false), false);
assertTrue(added);
queues[9] = new MessagingQueue(1, "sub10", channelIDManager.getID(), ms, pm, false, -1, null, true);
queues[9].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition2"), queues[9], false), false);
assertTrue(added);
queues[10] = new MessagingQueue(2, "sub11", channelIDManager.getID(), ms, pm, false, -1, null, false);
queues[10].activate();
added = office2.addBinding(new Binding(new SimpleCondition("condition2"), queues[10], false), false);
assertTrue(added);
queues[11] = new MessagingQueue(2, "sub12", channelIDManager.getID(), ms, pm, false, -1, null, true);
queues[11].activate();
added = office2.addBinding(new Binding(new SimpleCondition("condition2"), queues[11], false), false);
assertTrue(added);
queues[12] = new MessagingQueue(2, "sub13", channelIDManager.getID(), ms, pm, true, -1, null, false);
queues[12].activate();
added = office2.addBinding(new Binding(new SimpleCondition("condition2"), queues[12], false), false);
assertTrue(added);
queues[13] = new MessagingQueue(1, "sub14", channelIDManager.getID(), ms, pm, false, -1, null, true);
queues[13].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition2"), queues[13], false), false);
assertTrue(added);
queues[14] = new MessagingQueue(1, "sub15", channelIDManager.getID(), ms, pm, true, -1, null, false);
queues[14].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition2"), queues[14], false), false);
assertTrue(added);
queues[15] = new MessagingQueue(1, "sub16", channelIDManager.getID(), ms, pm, true, -1, null, true);
queues[15].activate();
added = office1.addBinding(new Binding(new SimpleCondition("condition2"), queues[15], false), false);
assertTrue(added);
SimpleReceiver[] receivers = new SimpleReceiver[16];