Spring Boot H2 Database for quick start tests Optimistic Locking Exception Scenario: Optimistic locking exception is tested under testIFOptimisticLockExceptionThrownInCaseOfDirtyRead() Run Spring Boot application mvn spring-boot:run