concept extension model in category java

This is an excerpt from Manning's book JUnit in Action.
JUnit Jupiter is the combination of the new programming (annotations, classes, and methods) and extension model for writing tests and extensions in JUnit 5. The Jupiter subproject provides a TestEngine for running Jupiter-based tests on the platform. By contrast with the existing runner and rule extension points in JUnit 4, the JUnit Jupiter extension model consists of a single coherent concept: the Extension API, discussed in chapter 4.
To compare the rules model of JUnit 4 and the extension model of JUnit 5, we’ll revisit our extended Calculator class (listing 4.18). The developers at Tested Data Systems use this class to execute mathematical operations for verifying their SUTs. They are interested in testing the methods that may throw exceptions. One rule that the Tested Data Systems test code uses extensively is ExpectedException, which can easily be replaced by the JUnit 5 assertThrows method.