}
@Test
public void sortAllSameValues() {
List<UserTicketEx> list = Arrays.asList(new UserTicketEx[] {
new UserTicketEx(new UserTicket("id1", "userID", new UUID(0, 0), "eventId", "comment", null, null, null, null, new DateTime(0), new DateTime(0), null), user),
new UserTicketEx(new UserTicket("id2", "userID", new UUID(0, 0), "eventId", "comment", null, null, null, null, new DateTime(0), new DateTime(0), null), user),
});
Collections.sort(list, comparator);
Assert.assertTrue(list.get(0).getAppliedAt().compareTo(list.get(1).getAppliedAt()) == 0);
Assert.assertTrue(list.get(0).getUserId().compareTo(list.get(1).getUserId()) == 0);