}
private void partitionAndMerge() throws Exception {
View v=ch2.getView();
System.out.println("view is " + v);
assertEquals("channel is supposed to have 2 members", 2, ch2.getView().size());
System.out.println("++ simulating network partition by stopping the GossipRouter");
stopRouter();
System.out.println("sleeping for 10 secs");
// Util.sleep(10000);
checker.waitForNViews(2, 10000);
v=ch1.getView();
System.out.println("-- ch1.view: " + v);
v=ch2.getView();
System.out.println("-- ch2.view: " + v);
assertEquals("view should be 1 (channels should have excluded each other", 1, v.size());
System.out.println("++ simulating merge by starting the GossipRouter again");
startRouter();
System.out.println("sleeping for 30 secs");