@Retention(RUNTIME)
@Target({TYPE,METHOD,ANNOTATION_TYPE})
@ExtendWith(SystemExitExtension.class)
public @interface FailOnSystemExit
This is a marker annotation that indicates the given test method or class is not expected
to call System.exit(). By annotating a test or a class with this annotation, we can prevent
an inadvertent System.exit() call from tearing down the test infrastructure.