@Override
    public boolean isFiltered(String path,TestElement sampler) {
        String ipAddr = getIpAddress(path);
        CookieManager cm = getCookieManager(ipAddr);
        ((HTTPSampler)sampler).setCookieManager(cm);
        return false;
    }
@Test
    public void testIsFiltered() throws Exception {
        Map<String, CookieManager> cm = new ConcurrentHashMap<>();
        Set<CookieManager> inUse = Collections
                .synchronizedSet(Collections.newSetFromMap(new IdentityHashMap<>()));
        SessionFilter filter = new SessionFilter(cm, inUse);
        HTTPSampler sampler = new HTTPSampler();
        filter.isFiltered("1.2.3.4 ...", sampler);
        assertSame(cm.get("1.2.3.4"), sampler.getCookieManager());
        assertTrue(inUse.contains(sampler.getCookieManager()));
    }