Shouldn't this be a test of success?  I'd expect to see you have a test that "test:2181/chroot" resolves to "1.1.1.1:2181/chroot".  Then a separate (non-chroot) test that ensures you handle UnknownHostException properly.