@Test(groups = "handler", dataProvider = "entries")
public void apply(final LdapEntry[] actual, final LdapEntry[] expected)
{

  final SortResultHandler handler = new SortResultHandler();
  final SearchResponse response = new SearchResponse();
  response.addEntries(actual);
  Assert.assertEquals(
    handler.apply(response).getEntries(),
    Stream.of(expected).collect(Collectors.toCollection(LinkedHashSet::new)));
}