	@Test
	public void testCalculateLabelCost() {

		String calcLabel = "OK";
		Map<String, Double> labelProbabilities = new HashMap<String, Double>();
		labelProbabilities.put("OK", 0.5);
		labelProbabilities.put("LOK", 0.0);
		labelProbabilities.put("HOK", 1.);

		CostMatrix<String> costMatrix = new CostMatrix<String>();
		costMatrix.add("OK", "OK", 1.);
		costMatrix.add("LOK", "OK", 10.);
		costMatrix.add("HOK", "OK", 20.);

		Double result = ProbabilityDistributions.calculateLabelCost(calcLabel, labelProbabilities,
				costMatrix);
		assertEquals(20.5, result, 0.0);
	}