How to test extension implementations
问题 There are several extension points available in the JUnit 5 API. For example: AfterEachCallback AfterAllCallback AfterTestExecutionCallback BeforeAllCallback BeforeEachCallback BeforeTestExecutionCallback ExecutionCondition ParameterResolver TestExecutionExceptionHandler TestInstancePostProcessor TestTemplateInvocationContextProvider Nearly all of these extensions take some form of ExtensionContext which provides access to the test class, test method, test instance, ability to publish report