jmock

How to run JUnit Eclipse Plugin tests with JMock?

Hello, I have Eclipse plug-in and junit tests for it, which are using jMock library. When I run my test 'as junit', all tests are running correctly. But when I run them 'as JUnit plugin test' I'm getting the following error: java.lang.TypeNotPresentException: Type [unknown] not present at sun.reflect.annotation.TypeNotPresentException...