@Test
public void findNearestInstanceIndexTest() {

	// Prepare test data with 2 instances, NUM_TREES trees with NUM_SEGMENTS segments
	final int[][][] trainLeafNodes = new int[][][] {{{5}, {3}}, {{4}, {5}}};
	classifier.setTrainLeafNodes(trainLeafNodes);
	
	final int[][] testLeafNodes = new int[][] { { 4 }, { 4 } };
	
	Assert.assertEquals("The nearest neighbor instance test selected the wrong instance.", 1,
			classifier.findNearestInstanceIndex(testLeafNodes));
}