assertEquals(false, ((NioListener) listener)
.getDataConnectionConfiguration().isPassiveIpCheck());
RemoteIpFilter filter = (RemoteIpFilter) listener.getSessionFilter();
assertEquals(3, filter.size());
assertTrue(filter.contains(new Subnet(InetAddress.getByName("1.2.3.0"), 16)));
assertTrue(filter.contains(new Subnet(InetAddress.getByName("1.2.4.0"), 16)));
assertTrue(filter.contains(new Subnet(InetAddress.getByName("1.2.3.4"), 32)));
listener = listeners.get("listener1");
assertNotNull(listener);
assertTrue(listener instanceof MyCustomListener);
assertEquals(2223, listener.getPort());