@Before and @After annotations demo with class hierarchy