Contract Testing
Test Events
Write tests that test contract events.
Tests can assert on events that are expected to be published.
The following example sets up a test environment, registers an increment contract, and checks after the increment invocations which events were published.