### Question:
HibernateCacheTimestamperMemcachedImpl implements HibernateCacheTimestamper { public CacheNamespace getCacheNamespace() { return cacheNamespace; }  @Override void setSettings(Settings settings); @Override void setProperties(OverridableReadOnlyProperties properties); @Override void setMemcachedAdapter(MemcachedAdapter memcachedAdapter); @Override void init(); @Override long next(); CacheNamespace getCacheNamespace(); static final String TIMESTAMP_KEY; static final long INCREASE_BY; static final int EXPIRY_SECONDS; }### Answer:
@Test public void constructor() throws Exception { givenTimestamperWithCacheRegionPrefix("cachetest"); CacheNamespace cacheNamespace = timestamper.getCacheNamespace(); assertThat(cacheNamespace.getName()).isEqualTo("cachetest." + HibernateCacheTimestamperMemcachedImpl.class .getSimpleName()); assertThat(cacheNamespace.isNamespaceExpirationRequired()).isFalse(); }
@Test public void constructor_without_cacheRegionPrefix() throws Exception { givenTimestamperWithCacheRegionPrefix(null); CacheNamespace cacheNamespace = timestamper.getCacheNamespace(); assertThat(cacheNamespace.getName()).isEqualTo(HibernateCacheTimestamperMemcachedImpl.class.getSimpleName()); assertThat(cacheNamespace.isNamespaceExpirationRequired()).isFalse(); }