public class MyContext extends SpecContext { public MyContext() { describe("MyClass", () -> { ... }); } } it("should return the sum of two numbers", () -> { ... }); assertThat(result).isEqualTo(expected);