A test for server -> client connections in Java