SolverConfiguration { public void setPriorities(final Map<String, Double> priorities) { if (priorities == null) { throw new InvalidParameterException(); } this.priorities = priorities; } 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(expected = InvalidParameterException.class) public void testNullConfiguration() { SolverConfiguration config = new SolverConfiguration(); config.setPriorities(null); }