### Question:
ImageCacheConfiguration extends Static { public static long getCacheMemorySize() { final String memoryProp = System.getProperty(KEY_CACHE_MEMORY_SIZE); if (memoryProp == null) { return DEFAULT_MEMORY_SIZE; } return parseToByte(memoryProp); }  static long getCacheMemorySize(); static void setCacheMemorySize(String candidate); static boolean isCacheSwapEnable(); static void setCacheSwapEnable(boolean allowSwap); static final String KEY_CACHE_MEMORY_SIZE; static final String KEY_CACHE_SWAP; }### Answer:
@Test public void readMemorySize() { System.getProperties().remove(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE); assertEquals(67108864l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "512m"); assertEquals(536870912l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "512M"); assertEquals(536870912l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "1g"); assertEquals(1073741824l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "1G"); assertEquals(1073741824l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "700k"); assertEquals(716800l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "700K"); assertEquals(716800l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "700Ko"); assertEquals(67108864l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "invalid"); assertEquals(67108864l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "512"); assertEquals(67108864l, ImageCacheConfiguration.getCacheMemorySize()); System.getProperties().setProperty(ImageCacheConfiguration.KEY_CACHE_MEMORY_SIZE, "1t"); assertEquals(67108864l, ImageCacheConfiguration.getCacheMemorySize()); }