@Test
public void testCorrectnessForMostFrequentLabelsFromWindowLengthPredicitions() {

	// Input.
	Map<Integer, List<Integer>> windowLengthPredicitions = new HashMap<>();
	List<Integer> list1 = Arrays.asList(1, 2, 3, 1, 1);
	List<Integer> list2 = Arrays.asList(3, 2, 3, 1, 1);
	List<Integer> list3 = Arrays.asList(2, 1, 3, 2, 1);
	List<Integer> list4 = Arrays.asList(1, 2, 3, 3, 1);
	windowLengthPredicitions.put(1, list1);
	windowLengthPredicitions.put(2, list2);
	windowLengthPredicitions.put(3, list3);
	windowLengthPredicitions.put(4, list4);
	// Expectation.
	int[] expectation = { 1, 2, 3, 1, 1 };
	List<Integer> mostFrequentLabels = this.shotgunEnsembleClassifier.mostFrequentLabelsFromWindowLengthPredicitions(windowLengthPredicitions);
	assertArrayEquals(expectation, mostFrequentLabels.stream().mapToInt(i -> i).toArray());
}