gradle + jmockitでjava.lang.IllegalStateExceptionって出たので対応
jmockitを使っていて gradle test とかやったら以下のエラーが出た。
java.lang.IllegalStateException: JMockit wasn't properly initialized; check that jmockit.jar precedes junit.jar in the classpath (if using JUnit; if not, check the documentation)
どうやらclasspathがjunitのjarより前にjmockitのjarの方が通ってる必要があるらしく、普通に書いてたら順番がいけてなくてダメだった。
で、以下のように対応したら大丈夫だった