public void updateAndTestCounter(OFMessage ofm,String type){
  validateCounter(type,0);
  counters.updateWriteStats(ofm);
  counters.updateWriteStats(ofm);
  counters.updateReadStats(ofm);
  counters.updateReadStats(ofm);
  validateCounter(type,2);
}

public void updateAndTestCounter ( OFMessage ofm , String type ) { validateCounter ( type , 0 ) ; counters . updateWriteStats ( ofm ) ; counters . updateWriteStats ( ofm ) ; counters . updateReadStats ( ofm ) ; counters . updateReadStats ( ofm ) ; validateCounter ( type , 2 ) ; }
sends two messages of read and write for the given type and tests the counters
