public void test_collapseZeroGap() {
		initRand();
		int numMarkers = 20;
		Chromosome chr = genome.getChromosome("1");

		for (int num = 1; num < 1000; num++) {
			// Create markers
			Tuple<Markers, Markers> tupleMarkers = createMarkers(chr, numMarkers);
			Markers markersOri = tupleMarkers.first;
			Markers markersCollapsedOri = tupleMarkers.second;

			//---
			// Compare created markers
			//---
			String mStr = markers2string(markersOri);
			String mColOriStr = markers2string(markersCollapsedOri);
			if (verbose) Gpr.debug("Iteration : " + num + "\n\tMarkers           : " + mStr + "\n\tMarkers collapsed : " + mColOriStr);

			// Are generated intervasl OK?
			if (!mStr.equals(mColOriStr)) {
				System.err.println("Markers : ");
				for (Marker m : markersOri)
					System.err.println(m);

				System.err.println("Markers collapsed: ");
				for (Marker m : markersCollapsedOri)
					System.err.println(m);

				throw new RuntimeException("Error creating markers! Markers and collapsed marker do not match!\n\t" + mStr + "\n\t" + mColOriStr);
			}

			//---
			// Compare to Markers.collapseZeroGap
			//---

			// Collapse
			Map<Marker, Marker> collapse = MarkerUtil.collapseZeroGap(markersOri);
			// Get unique markers
			HashSet<Marker> collapsed = new HashSet<Marker>();
			collapsed.addAll(collapse.values());

			Markers markers = new Markers();
			markers.addAll(collapsed);
			String mColStr = markers2string(markers); // Create string 

			// Are generated intervasl OK?
			if (!mColStr.equals(mStr)) {
				Gpr.debug("Error checing markers! Markers and collapsed marker do not match!\n\t" + mStr + "\n\t" + mColStr);

				System.err.println("Markers : ");
				for (Marker m : markersOri)
					System.err.println(m);

				System.err.println("Markers collapsed: ");
				markers = new Markers();
				markers.addAll(collapse.keySet());
				Markers keySorted = markers.sort(false, false);
				for (Marker mkey : keySorted)
					System.err.println(mkey + "\t->\t" + collapse.get(mkey));

				throw new RuntimeException("Error checing markers! Markers and collapsed marker do not match!\n\t" + mStr + "\n\t" + mColStr);
			}
		}
	}