How do I debug my unit tests?

We recommend using JUnit and a Corda mock network. You can find many setup examples in our samples repos for Java and Kotlin.