OntoSpreadState state = new OntoSpreadState();
ScoredConceptTO[] initialConcepts = OntoSpreadTestUtils.createScoredConcepts(test.getOntoSpreadConfig().getInitialConcepts());
state.setInitialConcepts(initialConcepts);
OntoSpreadRelationWeight relationWeight = OntoSpreadTestUtils.createRelationWeight(test.getOntoSpreadConfig().getRelations().getLocations());
OntologyDAO ontologyDAO = OntoSpreadTestUtils.createOntologyDAO(test.getResources().getLocations());
OntoSpreadProcess process = new OntoSpreadProcess(
ontologyDAO,
OntoSpreadTestUtils.createDefaultPreAdjustment(test.getOntoSpreadConfig().getInitialConcepts().getValue()),
OntoSpreadTestUtils.createDefaultRun(ontologyDAO, manager.asStopRestriction(),manager.asSelectRestriction(),relationWeight, manager.getDegradationFunction()),
OntoSpreadTestUtils.createDefaultPost(test.getOntoSpreadConfig().isPrizePaths()),
relationWeight);