Condition { public String toHQLStringWithOrders() { StringBuilder builder = new StringBuilder(); builder.append(toHQLString()); builder.append(getOrdersString()); return builder.toString(); } Condition();  Condition(JoinedType joinedType); List<Entry> getEntries(); Condition addOrder(String field, boolean asc); void addEntry(Condition condition); void addEntry(String fieldName, ConditionType conditionType, Object value); void addEntry(Entry entry); String toHQLString(); void setPageInfo(PageInfo pageInfo); PageInfo getPageInfo(); String getOrdersString(); String toHQLStringWithOrders(); JoinedType getJoinedType();  }
@Test public void testToHQLStringWithOrder_empty() { Condition condition = new Condition(); Assert.assertEquals(condition.toHQLStringWithOrders(), ""); }