A cheat sheet to assist in conversion of Java syntax to Kotlin.
Convert Java file to Kotlin, then replace the thenApply that gets generated with the correct Kotlin syntax.
Regex:
Search: \.thenApply[^\{]*\{(.*)\}\)
Replace: .thenApply {$1}
Replace assertEquals with shouldBe:
Regex:
Search: assertEquals\(([^,]*),[\s]*(.*)\)$
Replace: $1 shouldBe $2