@Test
	public void sort() {
		// create a copy, shuffle it, sort it and then compare to original
		@SuppressWarnings("unchecked")
		ArrayList<String> copy = (ArrayList<String>) samples.clone();

		Collections.shuffle(copy);

		Collections.sort(copy);

		Iterator<String> itra, itrb;
		itra = samples.iterator();
		itrb = copy.iterator();
		while (itra.hasNext() && itrb.hasNext()) {
			String a = itra.next();
			String b = itrb.next();
			assertSame(a, b);
		}
		assertFalse(itra.hasNext());
		assertFalse(itrb.hasNext());
	}