Have you ever tried to cover a REST API doing transactions with a local database with BDD/Gherkin?
I have done it in this POC:👇👇👇
The principle is:
1) have an app dialing with an H2 database
2) check the testing with Junit
3) cover with BDD/Gherkin/Cucumber
The snippet of the step definitions is just in the pictures below 👇