public static void test_2(){
  try{
    System.out.println("\n\nTestCase-2\n\n");
    TestNetwork n=new TestNetwork(4,4,2);
    Paxos p=new Paxos(n);
    p.runPaxos();
    n.change_DPmode(-1,1);
    for(int i=0;i<10;i++)    //Block the channel of all processes
      n.block_channel(i, 1); 
    Thread.sleep(500);
    for(int i=0;i<4;i++)    //Release all Proposers
      n.block_channel(i,0); 
    Thread.sleep(1000);
    for(int i=4;i<8;i++)   //Release all Acceptors
      n.block_channel(i,0);
    Thread.sleep(1000);
    n.block_channel(9,0); //Release one of the learner's channel
    Thread.sleep(1000);  
    n.block_channel(8,0);  //Lets release the next learner's channel
    Thread.sleep(5000);
    n.terminate_run();
    Thread.sleep(2000);
    System.out.println("\n\nTERMINATED PAXOS RUN-2");
    n.printTrace();
  }
  catch(Exception e){}
}