Here are the relavent snippets for doing this.
Here is the test that uses the dependency testCompile “io.github.robwin:assertj-swagger:0.4.0”
Here is the java (in the test package) that generates the swagger that is being served at localhost:8080
Here is the “canonical” swagger that we want to be fulfilled by the swagger generated from the real code