Simple test socket connection in Java