// Path: hibernate4-memcached-core/src/main/java/kr/pe/kwonnam/hibernate4memcached/regions/NaturalIdMemcachedRegion.java
// public class NaturalIdMemcachedRegion extends TransactionalDataMemcachedRegion implements NaturalIdRegion {
//     public NaturalIdMemcachedRegion(String regionName, OverridableReadOnlyProperties properties,
//                                     CacheDataDescription metadata, Settings settings,
//                                     MemcachedAdapter memcachedAdapter,
//                                     HibernateCacheTimestamper hibernateCacheTimestamper) {
//         super(new CacheNamespace(regionName, true), properties, metadata, settings, memcachedAdapter,
//               hibernateCacheTimestamper);
//     }
// 
//     @Override
//     public NaturalIdRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException {
//         switch (accessType) {
//             case READ_ONLY:
//                 return new ReadOnlyNaturalIdRegionAccessStrategy(this);
//             case NONSTRICT_READ_WRITE:
//                 return new NonstrictReadWriteNaturalIdRegionAccessStrategy(this);
//             default:
//                 throw new CacheException("Unsupported access strategy : " + accessType + ".");
//         }
//     }
// }


import kr.pe.kwonnam.hibernate4memcached.regions.NaturalIdMemcachedRegion;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.fest.assertions.api.Assertions.*;
package kr.pe.kwonnam.hibernate4memcached.strategies;



@RunWith(MockitoJUnitRunner.class)
public class ReadOnlyNaturalIdRegionAccessStrategyTest {
    @Rule
    public ExpectedException expectedException = ExpectedException.none();

    @Mock
// Path: hibernate4-memcached-core/src/main/java/kr/pe/kwonnam/hibernate4memcached/regions/NaturalIdMemcachedRegion.java
// public class NaturalIdMemcachedRegion extends TransactionalDataMemcachedRegion implements NaturalIdRegion {
//     public NaturalIdMemcachedRegion(String regionName, OverridableReadOnlyProperties properties,
//                                     CacheDataDescription metadata, Settings settings,
//                                     MemcachedAdapter memcachedAdapter,
//                                     HibernateCacheTimestamper hibernateCacheTimestamper) {
//         super(new CacheNamespace(regionName, true), properties, metadata, settings, memcachedAdapter,
//               hibernateCacheTimestamper);
//     }
// 
//     @Override
//     public NaturalIdRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException {
//         switch (accessType) {
//             case READ_ONLY:
//                 return new ReadOnlyNaturalIdRegionAccessStrategy(this);
//             case NONSTRICT_READ_WRITE:
//                 return new NonstrictReadWriteNaturalIdRegionAccessStrategy(this);
//             default:
//                 throw new CacheException("Unsupported access strategy : " + accessType + ".");
//         }
//     }
// }


// Path: hibernate4-memcached-core/src/test/java/kr/pe/kwonnam/hibernate4memcached/strategies/ReadOnlyNaturalIdRegionAccessStrategyTest.java
import kr.pe.kwonnam.hibernate4memcached.regions.NaturalIdMemcachedRegion;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.fest.assertions.api.Assertions.*;

package kr.pe.kwonnam.hibernate4memcached.strategies;



@RunWith(MockitoJUnitRunner.class)
public class ReadOnlyNaturalIdRegionAccessStrategyTest {
    @Rule
    public ExpectedException expectedException = ExpectedException.none();

    @Mock
    private NaturalIdMemcachedRegion naturalIdMemcachedRegion;