Mockito incapaz de fazer Java.lang.class final protegido

Use only this maven dependency:

    <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>4.2.0</version>
        <scope>test</scope>
    </dependency>
Agreeable Ant