protected static Cache<Object, Object> buildCache(String configChoice) {
        Caffeine<Object, Object> cacheBuilder = Caffeine.newBuilder();
        switch (configChoice) {
        case JMSPublisherGui.USE_FILE_RSC:
            cacheBuilder.maximumSize(1);
            break;
        default:
            cacheBuilder.expireAfterWrite(0, TimeUnit.MILLISECONDS).maximumSize(0);
        }
        return cacheBuilder.build();
    }
@Test
    public void noopCache() {
        Cache<Object,Object> noopCache = PublisherSampler.buildCache(JMSPublisherGui.USE_RANDOM_RSC);
        assertEquals(0, noopCache.estimatedSize());

        String key  = "key";
        String val1 = "1st time";
        assertSame(val1, noopCache.get(key, k -> val1));

        String val2 = "2nd call";
        assertSame(val2, noopCache.get(key, k -> val2));
    }