JUnit 5 (Jupiter) is the standard Java testing framework, usually combined with AssertJ for fluent assertions and Mockito for mocking dependencies. Core annotations Annotation Purpose @Test Marks a test method @BeforeEach / @AfterEach Run around every test @BeforeAll / @AfterAll Run once per class (static) @DisplayName Readable test name @ParameterizedTest + @CsvSource/@ValueSource Same test, many inputs @Nested Group related tests @Disabled Skip a test Structure: Arrange – Act – Assert Each test should check one behaviour, have a descriptive name, and be independent of other tests (no shared mutable state). Running mvn test or ./gradlew test. Add the JaCoCo plugin for coverage reports.