protected static SegmentInfo newSegmentInfo(Directory dir,String name){
  return new SegmentInfo(dir,Version.LATEST,name,10000,false,Codec.getDefault(),Collections.emptyMap(),StringHelper.randomId(),new HashMap<>(),null);
}

protected static SegmentInfo newSegmentInfo ( Directory dir , String name ) { return new SegmentInfo ( dir , Version . LATEST , name , 10000 , false , Codec . getDefault ( ) , Collections . emptyMap ( ) , StringHelper . randomId ( ) , new HashMap < > ( ) , null ) ; }
returns a new fake segment
