	@Test
	public void testEqual() {

		final GroupedLeaveOneOut<String, Integer> cv = new GroupedLeaveOneOut<String, Integer>();
		final CrossValidationIterable<GroupedDataset<String, ListDataset<Integer>, Integer>> iterable = cv
				.createIterable(equalDataset);

		for (final ValidationData<GroupedDataset<String, ListDataset<Integer>, Integer>> cvData : iterable) {
			final GroupedDataset<String, ListDataset<Integer>, Integer> training = cvData.getTrainingDataset();
			final GroupedDataset<String, ListDataset<Integer>, Integer> validation = cvData.getValidationDataset();

			assertEquals(1, validation.numInstances());
			assertEquals(equalDataset.numInstances() - 1, training.numInstances());
			assertEquals(equalDataset.numInstances(), validation.numInstances() + training.numInstances());
		}
	}