added JUnit test case SortTest that contains test for use case 1