### Question:
GeneralDataMemcachedRegion extends MemcachedRegion implements GeneralDataRegion { protected int getExpiryInSeconds() { return expirySeconds; } GeneralDataMemcachedRegion(CacheNamespace cacheNamespace, OverridableReadOnlyProperties properties, CacheDataDescription metadata,
                                      Settings settings, MemcachedAdapter memcachedAdapter, HibernateCacheTimestamper hibernateCacheTimestamper); @Override Object get(Object key); @Override void put(Object key, Object value); @Override void evict(Object key); @Override void evictAll();  }### Answer:
@Test public void populateExpirySeconds_default_properties() throws Exception { int expected = 12345; Properties properties = new Properties(); properties.setProperty(REGION_EXPIRY_SECONDS_PROPERTY_KEY_PREFIX, String.valueOf(expected)); givenRegionWithProperties(properties); assertThat(generalDataMemcachedRegion.getExpiryInSeconds()).isEqualTo(expected); }
@Test public void populateExpirySeconds_region_properties() throws Exception { int expected = 98765; Properties properties = new Properties(); properties.setProperty(REGION_EXPIRY_SECONDS_PROPERTY_KEY_PREFIX, "12345"); properties.setProperty(REGION_EXPIRY_SECONDS_PROPERTY_KEY_PREFIX + "." + cacheNamespace.getName(), String.valueOf(expected)); givenRegionWithProperties(properties); assertThat(generalDataMemcachedRegion.getExpiryInSeconds()).isEqualTo(expected); }