How to Write Tests For Framework Extensions? - The Code Whisperer

Recently I came across attempts to verify framework-based behavior. This is what I saw:

We introduce a framework like JPA Query Builder, RestEasy, or Spark. Then we get two kinds of code:


This is a companion discussion topic for the original entry at https://blog.thecodewhisperer.com/permalink/how-to-write-tests-for-framework-extensions