Why not using the converter instead? Do you really want to verify interactions with the annotations?
Usually I use Converter c = Converters.standardConverter(); Map<String, String> map = new HashMap<>(); map.put("myproperty", "myvalue"); MyAnnotation annotation = c.convert(map).to(MyAnnotation.class); Konrad > On 8. Apr 2020, at 11:40, Georg Henzler <ghenz...@apache.org> wrote: > > Hi all, > > if you are interested to make @Mock work better with Metatype config > annotations, feel free to join (and support) the discussion in [1]. > > Best Regards > Georg > > [1] https://github.com/mockito/mockito/issues/1900