extract the verification whether or not the dirrectory exists or not in a method of AbstractRiverTest