public void testProbabilityValuesFromThePaper(){
  List<Integer> nodes=new ArrayList<Integer>();
  nodes.add(1);
  nodes.add(2);
  nodes.add(3);
  nodes.add(4);
  double unknownProb=1.0 / nodes.size();
  MeetingProbabilitySet mps=new MeetingProbabilitySet(1.0,nodes);
  assertEquals(unknownProb,mps.getProbFor(1));
  assertEquals(unknownProb,mps.getProbFor(2));
  mps.updateMeetingProbFor(1);
  assertEquals(0.625,mps.getProbFor(1));
  assertEquals(0.125,mps.getProbFor(2));
}

public void testProbabilityValuesFromThePaper ( ) { List < Integer > nodes = new ArrayList < Integer > ( ) ; nodes . add ( 1 ) ; nodes . add ( 2 ) ; nodes . add ( 3 ) ; nodes . add ( 4 ) ; double unknownProb = 1.0 / nodes . size ( ) ; MeetingProbabilitySet mps = new MeetingProbabilitySet ( 1.0 , nodes ) ; assertEquals ( unknownProb , mps . getProbFor ( 1 ) ) ; assertEquals ( unknownProb , mps . getProbFor ( 2 ) ) ; mps . updateMeetingProbFor ( 1 ) ; assertEquals ( 0.625 , mps . getProbFor ( 1 ) ) ; assertEquals ( 0.125 , mps . getProbFor ( 2 ) ) ; }
tests the values that are given as an example in the original paper
