# File test/test_sockutils.rb, line 9
    def test_socketpair
      s1, s2 = SocketUtils.socketpair
      assert((s1.kind_of? BasicSocket))
      assert((s2.kind_of? BasicSocket))
      s1.write('foo')
      assert_equal('foo', s2.read(3))
      s2.write('bar')
      assert_equal('bar', s1.read(3))
      s1.close
      s2.close
    end