### Question:
OrderDependency implements Result { @Override public String toString() { String orderTypeStr = orderType.getStr(); String comparisonOperatorStr = comparisonOperator.getStr(); return lhs + OD_SEPARATOR + "[" + comparisonOperatorStr + "," + orderTypeStr + "]" + rhs; } protected  OrderDependency();  OrderDependency(final ColumnPermutation lhs, final ColumnPermutation rhs,
                         final OrderType orderType, final ComparisonOperator comparisonOperator); void setLhs(final ColumnPermutation lhs); void setOrderType(final OrderType orderType); void setRhs(final ColumnPermutation rhs); void setComparisonOperator(final ComparisonOperator comparisonOperator); ComparisonOperator getComparisonOperator(); ColumnPermutation getLhs(); OrderType getOrderType(); ColumnPermutation getRhs(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override @XmlTransient void sendResultTo(final OmniscientResultReceiver resultReceiver); @Override String toString(); String toString(Map<String, String> tableMapping, Map<String, String> columnMapping); static OrderDependency fromString(Map<String, String> tableMapping, Map<String, String> columnMapping, String str); static final String OD_SEPARATOR; }### Answer:
@Test public void testToString() { final ColumnPermutation expectedLhs = new ColumnPermutation(new ColumnIdentifier("table1", "column1"), new ColumnIdentifier( "table1", "column2")); final ColumnPermutation expectedRhs = new ColumnPermutation(new ColumnIdentifier("table1", "column3"), new ColumnIdentifier( "table1", "column4")); final OrderDependency orderDependency = new OrderDependency(expectedLhs, expectedRhs, OrderType.LEXICOGRAPHICAL, ComparisonOperator.SMALLER_EQUAL); final String expectedStringRepresentation = expectedLhs + OrderDependency.OD_SEPARATOR + "[" + "<=" + "," + "lex" + "]" + expectedRhs; assertEquals(expectedStringRepresentation, orderDependency.toString()); }