If you are using Camunda 8, the Camunda docs has a section that covers writing tests for processes using the Camunda Process Test (CPT), a Java library for testing BPMN processes and process applications.
This uses JUnit instead of mockMvc, but it has fleshed-out examples of how to test all parts of your process.