[Java] Fixed unit test so that if example.com changes it's ip address the test doesn't break.