Account
An aggregate root written in Java. Its decide functions are plain Java methods: they return the event they produce, and reject a command by throwing a RejectedException of a Rejection. A Java decide function cannot call the suspend functions of the API, such as DecideScope.reserve, and the test DSL is Kotlin, so the tests of a Java domain are Kotlin.