@Test
public void getAddress() throws UnknownHostException {
InetAddress expected = InetAddress.getLocalHost();
NetworkInterfaceBinding interfaceBinding = new NetworkInterfaceBinding(Collections.<NetworkInterface>emptySet(), expected);
SocketBindingManager bindingManager = mock(SocketBindingManager.class);
SocketBinding binding = new SocketBinding("socket", 1, true, null, 0, interfaceBinding, bindingManager, Collections.<ClientMapping>emptyList());
InjectedValue<SocketBinding> bindingValue = new InjectedValue<SocketBinding>();
bindingValue.inject(binding);
when(this.listener.getBinding()).thenReturn(bindingValue);