Testing Java Socket programming