//e.g. application-scoped beans are cached very early -> usage of ApplicationMockManager to register mocks for them
@BeforeClass
public static void init()
{
ApplicationMockManager applicationMockManager = BeanProvider.getContextualReference(ApplicationMockManager.class);
applicationMockManager.addMock(new MockedApplicationScopedBean());
}