public void testCompletedWithBaseInTheBeginningNoChange(){
  GridCacheAdapter<String,String> cache=grid.internalCache();
  GridCacheTestEntryEx entry=new GridCacheTestEntryEx(cache.context(),"1");
  UUID node1=UUID.randomUUID();
  UUID node2=UUID.randomUUID();
  GridCacheVersion ver1=version(1);
  GridCacheVersion ver2=version(2);
  GridCacheVersion ver3=version(3);
  GridCacheVersion ver4=version(4);
  GridCacheVersion ver5=version(5);
  GridCacheVersion ver6=version(6);
  GridCacheVersion ver7=version(7);
  entry.addRemote(node1,1,ver1,0,false,false);
  entry.addRemote(node2,2,ver2,0,false,false);
  entry.addRemote(node1,3,ver3,0,false,false);
  entry.addRemote(node2,4,ver4,0,false,false);
  entry.addRemote(node1,5,ver5,0,false,false);
  List<GridCacheVersion> committed=Arrays.asList(ver6,ver7);
  entry.orderCompleted(ver1,committed,Collections.<GridCacheVersion>emptyList());
  checkOrder(entry.remoteMvccSnapshot(),ver1,ver2,ver3,ver4,ver5);
  checkRemote(entry.candidate(ver1),ver1,false,false);
  checkRemote(entry.candidate(ver2),ver2,false,false);
  checkRemote(entry.candidate(ver3),ver3,false,false);
  checkRemote(entry.candidate(ver4),ver4,false,false);
  checkRemote(entry.candidate(ver5),ver5,false,false);
}

public void testCompletedWithBaseInTheBeginningNoChange ( ) { GridCacheAdapter < String , String > cache = grid . internalCache ( ) ; GridCacheTestEntryEx entry = new GridCacheTestEntryEx ( cache . context ( ) , "1" ) ; UUID node1 = UUID . randomUUID ( ) ; UUID node2 = UUID . randomUUID ( ) ; GridCacheVersion ver1 = version ( 1 ) ; GridCacheVersion ver2 = version ( 2 ) ; GridCacheVersion ver3 = version ( 3 ) ; GridCacheVersion ver4 = version ( 4 ) ; GridCacheVersion ver5 = version ( 5 ) ; GridCacheVersion ver6 = version ( 6 ) ; GridCacheVersion ver7 = version ( 7 ) ; entry . addRemote ( node1 , 1 , ver1 , 0 , false , false ) ; entry . addRemote ( node2 , 2 , ver2 , 0 , false , false ) ; entry . addRemote ( node1 , 3 , ver3 , 0 , false , false ) ; entry . addRemote ( node2 , 4 , ver4 , 0 , false , false ) ; entry . addRemote ( node1 , 5 , ver5 , 0 , false , false ) ; List < GridCacheVersion > committed = Arrays . asList ( ver6 , ver7 ) ; entry . orderCompleted ( ver1 , committed , Collections . < GridCacheVersion > emptyList ( ) ) ; checkOrder ( entry . remoteMvccSnapshot ( ) , ver1 , ver2 , ver3 , ver4 , ver5 ) ; checkRemote ( entry . candidate ( ver1 ) , ver1 , false , false ) ; checkRemote ( entry . candidate ( ver2 ) , ver2 , false , false ) ; checkRemote ( entry . candidate ( ver3 ) , ver3 , false , false ) ; checkRemote ( entry . candidate ( ver4 ) , ver4 , false , false ) ; checkRemote ( entry . candidate ( ver5 ) , ver5 , false , false ) ; }
this case should never happen , nevertheless we need to test for it .
