@Test
@Disabled("Should this test pass? It will fail currently, as RuntimeExceptions are not explicitly caught in AutomaticInboxProcessor#isToBeAutoApproved")
public void testRogueInboxAutoApprovePredicatesDoNoHarm() {

    automaticInboxProcessor.addInboxAutoApprovePredicate(discoveryResult -> {
        throw new RuntimeException("I am an evil inboxAutoApprovePredicate");
    });
    automaticInboxProcessor.addInboxAutoApprovePredicate(
            discoveryResult -> THING_TYPE_UID.equals(discoveryResult.getThingTypeUID()));
    automaticInboxProcessor.addInboxAutoApprovePredicate(discoveryResult -> {
        throw new RuntimeException("I am another evil inboxAutoApprovePredicate");
    });
    // The discovery result is auto-approved in the presence of the evil predicates
    inbox.add(DiscoveryResultBuilder.create(THING_UID).build());
    verify(thingRegistry, times(1)).add(argThat(thing -> THING_UID.equals(thing.getUID())));
}