public String getName() {
        return name;
    }
@Test
    public void testCacheConfigLoaderWriter() throws Exception {
        CacheSimpleConfig simpleConfig = new CacheSimpleConfig();
        simpleConfig.setCacheLoader(MyCacheLoader.class.getName());
        simpleConfig.setCacheWriter(EmptyCacheWriter.class.getName());

        CacheConfig cacheConfig = new CacheConfig(simpleConfig);

        CacheLoader loader = (CacheLoader) cacheConfig.getCacheLoaderFactory().create();
        CacheWriter writer = (CacheWriter) cacheConfig.getCacheWriterFactory().create();

        assertTrue(loader instanceof MyCacheLoader);
        assertTrue(writer instanceof EmptyCacheWriter);
    }