### Question:
Sort { @Override public String toString() { return new StringBuilder().append(getField()) .append(SEPARATOR) .append(getOrder()).toString(); } Sort(String sortValue, AttributeConverter converter);  Sort(String sortValue); String getField(); Order getOrder(); @Override String toString(); @Override boolean equals(Object obj); static final Order DEFAULT_ORDER; }### Answer:
@Test public void testToStringForParamWithConvertionValue() { Sort sort = new Sort( ActivityItem.ATTRIBUTE_ROOT_CASE_ID + " " + Order.DESC, new ActivityAttributeConverter()); Assert.assertEquals(sort.toString(), ActivityInstanceSearchDescriptor.PROCESS_INSTANCE_ID + " " + Order.DESC); }
@Test public void testToStringForParamWithoutConvertionValue() { Sort sort = new Sort( "TestParam " + Order.DESC, new ActivityAttributeConverter()); Assert.assertEquals(sort.toString(), "TestParam " + Order.DESC); }