### Question:
CacheManager implements CacheManagerBean { public @Override double getMaximumSizeMB() { long maxCacheSizeBytes = currentMaxCacheSize; return maxCacheSizeBytes / (1024d * 1024d); } @VisibleForTesting  CacheManager(); void setEncoder(@NonNull RevObjectSerializer encoder); ObjectCache acquire(final @NonNull String uniqueCacheIdentifier); void release(ObjectCache cache); @Override long getSize(); @Override long getSizeBytes(); @Override double getSizeMB(); @Override void clear(); @Override long getHitCount(); @Override double getHitRate(); @Override long getMissCount(); @Override double getMissRate(); @Override long getEvictionCount(); @Override void setMaximumSizePercent(double percent); @Override void setMaximumSizeMB(double maxSizeMB); long getMaximumSize(); @Override double getMaximumSizeMB(); @Override void setMaximumSize(long maxSizeBytes); @Override double getMaximumSizePercent(); @Override double getDefaultSizeMB(); @Override double getAbsoluteMaximumSizeMB(); @Nullable @Override String getMaximumSizeSystemProperty(); @Nullable @Override String getMaximumSizeEnvVariable(); @Nullable @Override String getCacheImplementationName(); static final CacheManager INSTANCE; static final String ENV_VAR; }### Answer:
public @Test void getMaximumSizeMB() { final long maxSize = 10 * 1024 * 1024; cacheManager.setMaximumSize(maxSize); assertEquals(10, cacheManager.getMaximumSizeMB(), 1e-9); }