private boolean isPerClassLifecycle(ExtensionContext context) {
        return context.getTestInstanceLifecycle()
            .filter(lifecycle -> TestInstance.Lifecycle.PER_CLASS == lifecycle)
            .isPresent();
    }
This extension enables JGiven for JUnit 5 Tests.
<p>
Just annotate your test class with {@code @ExtendWith( JGivenExtension.class )}
<p>
You can then inject stage classes by using the {@see ScenarioStage} annotation
<p>
As an alternative you can also inherit from one of the following predefined base classes:
<ul>
    <li>{@link ScenarioTest}</li>
    <li>{@link SimpleScenarioTest}</li>
</ul>

@see ScenarioTest
@see SimpleScenarioTest
jgiven-junit5/src/main/java/com/tngtech/jgiven/junit5/JGivenExtension.java