ReasonerFactory { public Reasoner createReasoner(AxiomLoader.Factory axiomLoaderFactory) { return createReasoner(axiomLoaderFactory, ReasonerConfiguration.getConfiguration()); }  Reasoner createReasoner(AxiomLoader.Factory axiomLoaderFactory); Reasoner createReasoner(AxiomLoader.Factory axiomLoaderFactory,
			ReasonerConfiguration config); Reasoner createReasoner(final Reasoner reasoner,
			final ElkObject.Factory elkFactory,
			final ReasonerConfiguration config); Reasoner createReasoner(final ReasonerConfiguration config);  }
@SuppressWarnings("static-method") @Test public void createReasonerDefaultConfig() { Reasoner reasoner = new ReasonerFactory().createReasoner( new TestAxiomLoaderFactory(new EmptyAxiomLoader())); assertEquals(Runtime.getRuntime().availableProcessors(), reasoner.getNumberOfWorkers()); }
@Test public void createReasonerCustomConfig() throws ConfigurationException, IOException { Reasoner reasoner = new ReasonerFactory().createReasoner( new TestAxiomLoaderFactory(new EmptyAxiomLoader()), FailingReasonerInterrupter.INSTANCE, new SimpleStageExecutor(), (ReasonerConfiguration) new ConfigurationFactory() .getConfiguration(getClass().getClassLoader() .getResourceAsStream("elk_test.properties"), ReasonerConfiguration.REASONER_CONFIG_PREFIX, ReasonerConfiguration.class)); assertNotNull(reasoner); assertEquals(10, reasoner.getNumberOfWorkers()); assertFalse(reasoner.isIncrementalMode()); }