source: class MiningModelEvaluationContextTest extends ModelEvaluationContext {
  
  	@Test
  	public void evaluate() throws Exception {
  
target: 		MiningModelEvaluator evaluator = (MiningModelEvaluator)createModelEvaluator();
  
  		MiningModelEvaluationContext context = new MiningModelEvaluationContext(evaluator);
  		context.declare(FieldName.create("Age"), 35);
  
  		Map<FieldName, ?> results = evaluator.evaluateInternal(context);
  
  		Classification<?, ?> targetValue = (Classification<?, ?>)results.get(evaluator.getTargetName());
  
  		assertEquals("under 50", targetValue.getResult());
  	}
  
  }