Some networking tests in Java