How to completely disable flowable for unit tests

As a developer
I want to run unit test of Spring Boot embedding Flowable without any part of Flowable starting
so that it is not started with Spring context in tests not needing it and to prevent errors in test / context shutdown:

ERROR [flowable-event-change-detector-1] o.f.e.i.m.EventRegistryChangeDetectionRunnablerun( Exception while detecting event registry changes

org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException: EntityManagerFactory is closed