### Question:
PreferenceDomain implements Serializable { @Nonnull public static PreferenceDomain fromString(@Nonnull String spec) { Matcher m = specRE.matcher(spec); if (!m.matches()) { throw new IllegalArgumentException("invalid domain specification"); } double min = Double.parseDouble(m.group(1)); double max = Double.parseDouble(m.group(2)); String precs = m.group(3); if (precs != null) { double prec = Double.parseDouble(precs); return new PreferenceDomain(min, max, prec); } else { return new PreferenceDomain(min, max); } } PreferenceDomain(double min, double max, double prec);  PreferenceDomain(double min, double max); double getMinimum(); double getMaximum(); boolean hasPrecision(); double getPrecision(); double clampValue(double v); Long2DoubleSortedMap clampVector(Map<Long,Double> scores); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object o); @Nonnull static PreferenceDomain fromString(@Nonnull String spec); static PreferenceDomainBuilder newBuilder(); static final long serialVersionUID; }### Answer:
@Test(expected = IllegalArgumentException.class) public void testParseInverted() { PreferenceDomain.fromString("[2.5, -1]"); }