### Question:
InputParameterModel { public InputParameterModel(int strength, String name, List<Parameter> parameters) { this(strength, name, parameters, Collections.emptyList(), Collections.emptyList()); } InputParameterModel(int strength, String name, List<Parameter> parameters);  InputParameterModel(int strength, String name, List<Parameter> parameters, Collection<Constraint> exclusionConstraints, Collection<Constraint> errorConstraints); int getStrength(); String getName(); List<Parameter> getParameters(); List<Constraint> getExclusionConstraints(); List<Constraint> getErrorConstraints(); int size(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static Builder inputParameterModel(String name);  }### Answer:
@Test void sameParameterNameCannotAppearTwice() { Assertions.assertThrows(IllegalArgumentException.class, () -> InputParameterModel.inputParameterModel("test").strength(2).parameters(Parameter.parameter("param1").values(0, 1), Parameter.parameter("param1").values(0, 1)).build()); }