Annotation Type ProducesAlternative


@Stereotype @Alternative @Target({FIELD,METHOD,TYPE,PARAMETER}) @Retention(RUNTIME) public @interface ProducesAlternative
@ProducesAlternative causes a produced variable or method to act as an enabled alternative overriding any other suitable injections.
 @Produces
 @ProducesAlternative
 // This mock will be used instead!
 @Mock
 Engine engine;