Aspectj plugin cause unit test case fail?

I am adding unit test for some legacy code .and I use mockito and powermock to mock some external class.
After finish writing the case, I run it in eclipse and all test passes.
but when I run gradle test one test fails, and I checked the failed log seems some external class is not mocked.
but if I remove apply plugin: 'aspectj' in build.gradle , all test can pass.
anyone can help explain this? thanks.


Do you have a simple example build showing the problem that you can share a link to?