I\'m facing some problems when trying to inject a bean with the annotation @MockBean inside a Junit test. As a result I get the real service injected instead of the mocked one,