Initial commit.
expectManagedEvent and expectManagedEvent functions.