@Test
public void getOpType(){

	FieldName name = FieldName.create("y");
	DataField dataField = new DataField(name, OpType.CONTINUOUS, DataType.DOUBLE);
	MiningField miningField = new MiningField(name)
		.setOpType(OpType.CATEGORICAL);
	Target target = new Target()
		.setField(name)
		.setOpType(OpType.CONTINUOUS);
	TargetField targetField = new TargetField(dataField, null, null);
	assertEquals(OpType.CONTINUOUS, targetField.getOpType());
	targetField = new TargetField(dataField, miningField, null);
	assertEquals(OpType.CATEGORICAL, targetField.getOpType());
	targetField = new TargetField(dataField, miningField, target);
	assertEquals(OpType.CONTINUOUS, targetField.getOpType());
}