@Test
public void findModel(){

	PMML pmml = new PMML();
	TreeModel firstTreeModel = new TreeModel()
		.setModelName("first");
	TreeModel secondTreeModel = new TreeModel()
		.setModelName("second");
	pmml.addModels(firstTreeModel, secondTreeModel);
	assertSame(firstTreeModel, PMMLUtil.findModel(pmml, TreeModel.class));
	firstTreeModel.setScorable(false);
	assertSame(secondTreeModel, PMMLUtil.findModel(pmml, TreeModel.class));
	secondTreeModel.setScorable(false);
	try {
		PMMLUtil.findModel(pmml, TreeModel.class);
		fail();
	} catch(MissingElementException mee){
		// Ignored
	}
}