}
@Test
public void testSortIdentities() throws XMLStreamException, JAXBException {
Identity identity1 = new Identity("AAA", "aaa", "name1", "en");
Identity identity2 = new Identity("AAA", "aaa", "name2", "de");
Identity identity3 = new Identity("AAA", "bbb", "name2", "de");
Identity identity4 = new Identity("BBB", "bbb", "name2", "de");
Identity identity5 = new Identity("BBB", "aaa", "name1", "en");
Identity identity6 = new Identity("CCC", "aaa", "name2", "de");
List<Identity> identities = new ArrayList<>();
identities.add(identity1);
identities.add(identity2);
identities.add(identity3);