It works by looking at the request and extracting the relevant information to populate the Swagger JSON file.
I've wrote it to go with contract testing (http://martinfowler.com/articles/microservice-testing/#testing-contract-introduction), but it can also work with normal HTTP based integration tests.
Any suggestion / opinion is welcome.