SolverConfiguration { public Double getPriorityForCouplingCriterion(final String criterionType) { if (!priorities.containsKey(criterionType)) { log.error("no priority defined for couplingCriterion: " + criterionType + ". Use 1"); return 1d; } return priorities.get(criterionType); } SolverConfiguration(); void setAlgorithmParams(final Map<String, Double> mclParams); Map<String, Double> getPriorities(); void setPriorities(final Map<String, Double> priorities); Map<String, Double> getAlgorithmParams(); Double getPriorityForCouplingCriterion(final String criterionType); Double getValueForAlgorithmParam(final String key); void setAlgorithm(final String algorithm); String getAlgorithm(); @Override String toString();  }
@Test public void testEmptyConfig() { SolverConfiguration config = new SolverConfiguration(); assertEquals(new Double(1.0d), config.getPriorityForCouplingCriterion("sameEntity")); }