If the application is deployed in an Application Server, the deferred methods will be invoked asynchronously. However, if the Application is not executing in an Application Server container (for example, for off-line unit-testing), you may wish to invoke the deferred method synchronously (i.e. not deferred). This can be done by setting the property curam.test.stubdeferredprocessing to true.
Setting curam.test.stubdeferredprocessinsametransaction property to true ensures that the deferred processes gets invoked in the same transaction. If this property is not set, the deferred processes will still be invoked, but in a different transaction.