	@Test
	public void testCompareTo() {

		
		ImagePlane pDefault = ImagePlane.getDefaultPlane();
		
		ImagePlane p000 = ImagePlane.getPlaneWithChannel(0, 0, 0);
		ImagePlane p100 = ImagePlane.getPlaneWithChannel(1, 0, 0);
		ImagePlane p010 = ImagePlane.getPlaneWithChannel(0, 1, 0);
		ImagePlane p001 = ImagePlane.getPlaneWithChannel(0, 0, 1);
		ImagePlane p110 = ImagePlane.getPlaneWithChannel(1, 1, 0);
		ImagePlane p101 = ImagePlane.getPlaneWithChannel(1, 0, 1);
		ImagePlane p011 = ImagePlane.getPlaneWithChannel(0, 1, 1);
		ImagePlane p111 = ImagePlane.getPlaneWithChannel(1, 1, 1);
		
		List<ImagePlane> list = new ArrayList<>(Arrays.asList(
				pDefault, p000, p100, p010, p001, p110, p101, p011
				));

		Collections.shuffle(list, new Random(100L));
		list.add(0, p111);

		List<ImagePlane> listSortedManually = Arrays.asList(
				pDefault,
				p000,
				p100,
				p010,
				p110,
				p001,
				p101,
				p011,
				p111
				);
		
		assertNotEquals(list, listSortedManually);
		Collections.sort(list);
		assertEquals(list, listSortedManually);
	}