# File tests/test_1.rb, line 19
        def test4
                @inotify.add_watch("/tmp", Inotify::CREATE)
                begin 
                        File.open(File.join("/tmp", "ruby-inotify-test-4"), 'w')
                        @inotify.each_event do |ev|
                                assert_equal(ev.class, Inotify::Event)
                                assert_equal(ev.inspect, "<Inotify::Event name=ruby-inotify-test-4 mask=256 wd=1>")
                                assert_equal(ev.name, "ruby-inotify-test-4")
                                assert_equal(ev.mask, Inotify::CREATE)
                                break
                        end
                ensure
                        File.unlink(File.join("/tmp", "ruby-inotify-test-4"))
                end
        end