@Test
public void testBindSimple() throws Exception {

  ServerSocket socket = new ServerSocket();
  InetSocketAddress address = new InetSocketAddress("0.0.0.0",0);
  Server.bind(socket, address, 10);
  try {
    assertTrue(socket.isBound());
  } finally {
    socket.close();
  }
}