Question: what is the difference between @before and @beforeclass annotation?
Answer: The Before annotation indicates that this method must be executed before each test in the class, so as to execute some preconditions necessary for the test. The BeforeClass annotation indicates that the static method to which is attached must be executed once and before all tests in the class.