环境
1. JDK 1.8
2. 依赖
<dependency>
<!-- jmockit 必须在Junit之前 -->
<groupId>org.jmockit</groupId>
<artifactId>jmockit</artifactId>
<version>1.37</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
参考
1. JMockit基本概念