@@ -0,0 +1,619 @@
+package net.grinder.util;%0A%0Aimport static org.hamcrest.Matchers.not;%0Aimport static org.hamcrest.Matchers.notNullValue;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport org.junit.Test;%0A%0Apublic class NetworkUtilTest %7B%0A%09@Test%0A%09public void testLocalHostName() %7B%0A%09%09String localHostAddress = NetworkUtil.getLocalHostAddress(%22www.google.com%22, 80);%0A%09%09assertThat(localHostAddress, notNullValue());%0A%09%09assertThat(localHostAddress, not(%22127.0.0.1%22));%0A%09%09localHostAddress = NetworkUtil.getLocalHostAddress(%22122.132.22.11%22, 80);%0A%09%09assertThat(localHostAddress, notNullValue());%0A%09%09assertThat(localHostAddress, not(%22127.0.0.1%22));%0A%0A%09%7D%0A%7D%0A

Add agent which is used for specific user.