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(EventRegistryChangeDetectionRunnable.java:37) 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

In my case I’ve solved it using this properties:

flowable:
  process:
    enabled: false
  idm:
    ldap:
      enabled: false
    enabled: false
  form:
    enabled: false
  eventregistry:
    enabled: false
  dmn:
    enabled: false
  content:
    enabled: false
  cmmn:
    enabled: false
  app:
    enabled: false

and also mocking every flowable component that is injected to my services:

@MockBean(RepositoryService.class)
@MockBean(TaskService.class)
@MockBean(RuntimeService.class)

I’m using flowable version 6.6.0