JUnit questions check that you can write reliable unit tests. This topic covers why unit testing matters, the @Test annotation, setup methods such as @Before and @BeforeClass, assertions, testing expected exceptions, parameterized tests, test suites, timeouts, @RunWith and @Rule, and common questions about testing private and static methods.