In JUnit 4, the @BeforeClass and @AfterClass methods have to be declared as static.
在JUnit 4中，@BeforeClass和@AfterClass方法必须被声明为静态的。