@Test
public void testToggleSortOrder() {

    JXList list = new JXList(ascendingListModel, true);
    assertSame(SortOrder.UNSORTED, list.getSortOrder());
    list.toggleSortOrder();
    assertSame(SortOrder.ASCENDING, list.getSortOrder());
    list.toggleSortOrder();
    assertSame(SortOrder.DESCENDING, list.getSortOrder());
    list.resetSortOrder();
    assertSame(SortOrder.UNSORTED, list.getSortOrder());
}