@Test
	public void testMacroAvgAggregatePerformancesMapOfIntegerNodeValueTypeMapOfNodeValueTypeInteger() {
		
		Map<Integer, String> indexToState = new TreeMap<Integer,String>(); indexToState.put(0, "s1"); indexToState.put(1, "s2");  indexToState.put(2, "s3");
		Map<Integer, String> indexToStateAgg = new TreeMap<Integer,String>(); indexToStateAgg.put(2, "s1"); indexToStateAgg.put(0, "s2");  indexToStateAgg.put(1, "s3");
		Map<String, Integer> StateToIndexAgg = new TreeMap<String, Integer>(); StateToIndexAgg.put("s1", 2); StateToIndexAgg.put("s2", 0);  StateToIndexAgg.put("s3", 1);
		
		ClassificationStandardPerformances<Double> performances1 = new ClassificationStandardPerformances<Double>(indexToState);
		performances1.addResults(generateDataset1());
		ClassificationStandardPerformances<Double> performances2 = new ClassificationStandardPerformances<Double>(indexToState);
		performances2.addResults(generateDataset2());
		
		MicroMacroClassificationPerformances<Double,ClassificationStandardPerformances<Double>> aggPerformances = new MicroMacroClassificationPerformances<Double,ClassificationStandardPerformances<Double>>(indexToStateAgg);
		aggPerformances.setMicroFlag(false);
		aggPerformances.addPerformances(performances1);
		aggPerformances.addPerformances(performances2);
		
		for( int i = 0; i < indexToState.size(); ++i)
			assertTrue(aggPerformances.valueToIndex( aggPerformances.indexToValue(i)) == i);
	}