StringConstant extends Constant<String, String> implements Comparable<StringConstant> { @Override public int compareTo(StringConstant o) { return this.getValue().compareTo(o.getValue()); } StringConstant(Expression<Set<String>> type, String value); @Override int compareTo(StringConstant o);  }
@Test public void compareTo_sameValues_returnsZero() { assertEquals(0, constant.compareTo(new StringConstant(null, "test_value"))); }
@Test public void compareTo_notSameValues_returnsNotZero() { assertNotEquals(0, constant.compareTo(new StringConstant(null, "another_test_value"))); }