@Test
public void evaluateNormDiscrete(){

	FieldName name = new FieldName("x");
	Double equals = 1d;
	Double notEquals = 0d;
	NormDiscrete stringThree = new NormDiscrete(name, "3");
	assertEquals(equals, evaluate(stringThree, createContext(name, "3")));
	assertEquals(notEquals, evaluate(stringThree, createContext(name, "1")));
	stringThree.setMapMissingTo(5d);
	assertEquals(5d, evaluate(stringThree, createContext(name, null)));
	NormDiscrete integerThree = new NormDiscrete(name, "3");
	assertEquals(equals, evaluate(integerThree, createContext(name, 3)));
	assertEquals(notEquals, evaluate(integerThree, createContext(name, 1)));
	NormDiscrete floatThree = new NormDiscrete(name, "3.0");
	assertEquals(equals, evaluate(floatThree, createContext(name, 3f)));
	assertEquals(notEquals, evaluate(floatThree, createContext(name, 1f)));
}