MyReceiver receiver3=new MyReceiver("c3");
MyReceiver receiver3=new MyReceiver(c3,"c3");
    private void stateTransferTestHelper(boolean sendMessages) throws ChannelException {        c1=createChannel();        MyReceiver receiver=new MyReceiver("c1");        c1.setReceiver(receiver);        c1.connect("bla");        // Util.sleep(1000);        if(sendMessages){            c1.send(new Message());            c1.send(new Message());        }        // Util.sleep(1000);        c2=createChannel();        MyReceiver receiver2=new MyReceiver("c2");        c2.setReceiver(receiver2);        c2.connect("bla");        // Util.sleep(1000);        c3=createChannel();        MyReceiver receiver3=new MyReceiver("c3");        c3.setReceiver(receiver3);        c3.connect("bla");        // Util.sleep(1000);        if(sendMessages){            c1.send(new Message());            c2.send(new Message());        }        // Util.sleep(500);        if(sendMessages){            c1.send(new Message());            c2.send(new Message());            c3.send(new Message());        }        checkEventSequence(receiver);        checkEventSequence(receiver2);        checkEventSequence(receiver3);        System.out.println("=== fetching the state ====");        c2.getState(null, 10000);        // Util.sleep(2000);        if(sendMessages){            c1.send(new Message());            c1.send(new Message());            c2.send(new Message());            c2.send(new Message());        }        checkNonStateTransferMemberSequence(receiver3);        checkBlockStateUnBlockSequence(receiver);        checkBlockStateUnBlockSequence(receiver2);        c2.close();        c2=null;        // Util.sleep(2000);        c2=createChannel();        receiver2=new MyReceiver("c2");        c2.setReceiver(receiver2);        c2.connect("bla");        // Util.sleep(2000);        if(sendMessages){            c1.send(new Message());        }        checkEventSequence(receiver);        checkEventSequence(receiver2);        checkEventSequence(receiver3);        System.out.println("=== fetching the state ====");        c3.getState(null, 10000);        if(sendMessages){            c1.send(new Message());            c2.send(new Message());        }        // Util.sleep(2000);        checkNonStateTransferMemberSequence(receiver2);        checkBlockStateUnBlockSequence(receiver);        checkBlockStateUnBlockSequence(receiver3);    }