@Test
public void testCustomSorting(TestContext context) {

    LoggingResourceManager manager = new LoggingResourceManager(vertx, storage, LOGGING_URI);
    LoggingResource loggingResource = manager.getLoggingResource();
    // PayloadFilters
    List<Map<String, String>> payloadFilterEntries = loggingResource.getPayloadFilters();
    context.assertEquals(2, payloadFilterEntries.size());
    // Check that the Resource has the correct sequence of the resource entries.
    context.assertEquals(payloadFilterEntries.get(0).get("url"), "/playground/nsa/v1/acknowledgment/.*");
    context.assertEquals(payloadFilterEntries.get(1).get("url"), "/playground/server/users/v1/.*");
    GETRequest request = new GETRequest();
    LoggingHandler loggingHandler = new LoggingHandler(manager, request, vertx.eventBus());
    // Check whether "active" is set to TRUE, which means the Logging for the GET Request
    // is happening and is not aborted (which was the case before the fix (NEMO-5551))
    context.assertTrue(loggingHandler.isActive());
    // Switch the entries. The test must also pass/true if correct.
    Map<String, String> firstEntry = payloadFilterEntries.get(0);
    Map<String, String> secondEntry = payloadFilterEntries.get(1);
    payloadFilterEntries.set(0,secondEntry);
    payloadFilterEntries.set(1,firstEntry);
    context.assertTrue(loggingHandler.isActive());
}