Unable to initialize Mockito
问题 I am trying to set up Mockito 2.22 and have downloaded mockito-core-2.22.2.jar and byte-buddy-1.9.0.jar and, in the Netbeans 8.2 project, I have added those two jar files, JUnit 4.12 and Hamcrest 1.3 to the test libraries. When I try to run the MCVE: package com.stackoverflow.test; import org.junit.Test; import static org.mockito.Mockito.mock; public class SimpleMockTest { public static class A{ public String value(){ return "A"; } } @Test public void testASimpleMock() { A mocked = mock( A