### Question:
VmPlacementSolverFactory { public SolverFactory getSolverFactory() { SolverFactory solverFactory = new XmlSolverFactory(BASE_SOLVER_XML_PATH); configureSolver(solverFactory.getSolverConfig(), vmPlacementConfig); return solverFactory; } VmPlacementSolverFactory(VmPlacementConfig vmPlacementConfig); SolverFactory getSolverFactory();  }### Answer:
@Test public void getTestFactoryConfiguresAccordingToConfig() { VmPlacementSolverFactory vmPlacementSolverFactory = new VmPlacementSolverFactory(getTestVmPlacementConfig()); SolverConfig solverConfig = vmPlacementSolverFactory.getSolverFactory().getSolverConfig(); assertEquals(ScoreCalculatorDistribution.class, solverConfig.getScoreDirectorFactoryConfig().getSimpleScoreCalculatorClass()); assertEquals(60, (long) solverConfig.getTerminationConfig().getMaximumSecondsSpend()); ConstructionHeuristicSolverPhaseConfig constructionHeuristicSolverPhaseConfig = (ConstructionHeuristicSolverPhaseConfig) (solverConfig.getSolverPhaseConfigList().toArray()[0]); assertEquals(ConstructionHeuristicSolverPhaseConfig.ConstructionHeuristicType.FIRST_FIT_DECREASING, constructionHeuristicSolverPhaseConfig.getConstructionHeuristicType()); LocalSearchSolverPhaseConfig localSearchSolverPhaseConfig = (LocalSearchSolverPhaseConfig) solverConfig.getSolverPhaseConfigList().toArray()[1]; AcceptorConfig acceptorConfig = localSearchSolverPhaseConfig.getAcceptorConfig(); ForagerConfig foragerConfig = localSearchSolverPhaseConfig.getForagerConfig(); assertEquals("10hard/20soft", acceptorConfig.getSimulatedAnnealingStartingTemperature()); assertEquals(1, (long) foragerConfig.getAcceptedCountLimit()); }