Some JUnit4 construct cannot be used in a JUnit3 context. Convert your class to JUnit4 style to use them.