@Test
public void evaluateRegressionDefault(){

	TargetValue targetValue = new TargetValue()
		.setDefaultValue(Math.PI);
	Target target = new Target()
		.setField(null)
		.addTargetValues(targetValue);
	ModelEvaluator<?> evaluator = createTreeModelEvaluator(MiningFunction.REGRESSION, MathContext.FLOAT, target);
	DataField dataField = evaluator.getDataField(target.getField());
	assertEquals(OpType.CONTINUOUS, dataField.getOpType());
	assertEquals(DataType.FLOAT, dataField.getDataType());
	Map<FieldName, ?> results = evaluator.evaluate(Collections.emptyMap());
	assertEquals((float)Math.PI, results.get(dataField.getName()));
	evaluator = createTreeModelEvaluator(MiningFunction.REGRESSION, MathContext.DOUBLE, target);
	dataField = evaluator.getDefaultDataField();
	assertEquals(OpType.CONTINUOUS, dataField.getOpType());
	assertEquals(DataType.DOUBLE, dataField.getDataType());
	results = evaluator.evaluate(Collections.emptyMap());
	assertEquals(Math.PI, results.get(dataField.getName()));
}