def test_locked_by_dead_process
File.open(@store_path, 'w') {|output| output.write(DEAD_PID.to_s + "\n") }
@rc_d.lock
assert_equal(1, @delete_call)
assert_equal(@store_path, @delete_path)
assert_equal(3, @open_call)
assert_equal(@store_path, @open_path)
assert_equal(File::WRONLY | File::CREAT | File::TRUNC | File::EXCL, @open_mode)
assert_equal(true, @open_block_given_p)
assert_equal(SELF_PID.to_s + "\n", File.open(@store_path) {|input| input.read })
assert_equal(1, @proc_alive_call)
assert_equal(DEAD_PID, @proc_alive_pid)
end