// Path: hibernate4-memcached-core/src/main/java/kr/pe/kwonnam/hibernate4memcached/strategies/NonstrictReadWriteCollectionRegionAccessStrategy.java
// public class NonstrictReadWriteCollectionRegionAccessStrategy extends BaseCollectionMemcachedRegionAccessStrategy {
//     public NonstrictReadWriteCollectionRegionAccessStrategy(CollectionMemcachedRegion collectionMemcachedRegion) {
//         super(collectionMemcachedRegion);
//     }
// }
// 
// Path: hibernate4-memcached-core/src/main/java/kr/pe/kwonnam/hibernate4memcached/strategies/ReadOnlyCollectionRegionAccessStrategy.java
// public class ReadOnlyCollectionRegionAccessStrategy extends BaseCollectionMemcachedRegionAccessStrategy {
//     public ReadOnlyCollectionRegionAccessStrategy(CollectionMemcachedRegion collectionMemcachedRegion) {
//         super(collectionMemcachedRegion);
//     }
// }


import kr.pe.kwonnam.hibernate4memcached.strategies.NonstrictReadWriteCollectionRegionAccessStrategy;
import kr.pe.kwonnam.hibernate4memcached.strategies.ReadOnlyCollectionRegionAccessStrategy;
import org.hibernate.cache.CacheException;
import org.hibernate.cache.spi.access.AccessType;
import org.junit.Test;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.hamcrest.CoreMatchers.containsString;
package kr.pe.kwonnam.hibernate4memcached.regions;



public class CollectionMemcachedRegionTest extends AbstractFinalMemcachedRegionTest {

    private CollectionMemcachedRegion collectionMemcachedRegion;

    @Override
    protected void afterSetUp() throws Exception {
        collectionMemcachedRegion = new CollectionMemcachedRegion("books.authors", properties, metadata, settings, memcachedAdapter, hibernateCacheTimestamper);
    }

    @Test
    public void buildAccessStrategy_AccessType_READ_ONLY() throws Exception {
        assertThat(collectionMemcachedRegion.buildAccessStrategy(AccessType.READ_ONLY))
// Path: hibernate4-memcached-core/src/main/java/kr/pe/kwonnam/hibernate4memcached/strategies/NonstrictReadWriteCollectionRegionAccessStrategy.java
// public class NonstrictReadWriteCollectionRegionAccessStrategy extends BaseCollectionMemcachedRegionAccessStrategy {
//     public NonstrictReadWriteCollectionRegionAccessStrategy(CollectionMemcachedRegion collectionMemcachedRegion) {
//         super(collectionMemcachedRegion);
//     }
// }
// 
// Path: hibernate4-memcached-core/src/main/java/kr/pe/kwonnam/hibernate4memcached/strategies/ReadOnlyCollectionRegionAccessStrategy.java
// public class ReadOnlyCollectionRegionAccessStrategy extends BaseCollectionMemcachedRegionAccessStrategy {
//     public ReadOnlyCollectionRegionAccessStrategy(CollectionMemcachedRegion collectionMemcachedRegion) {
//         super(collectionMemcachedRegion);
//     }
// }


// Path: hibernate4-memcached-core/src/test/java/kr/pe/kwonnam/hibernate4memcached/regions/CollectionMemcachedRegionTest.java
import kr.pe.kwonnam.hibernate4memcached.strategies.NonstrictReadWriteCollectionRegionAccessStrategy;
import kr.pe.kwonnam.hibernate4memcached.strategies.ReadOnlyCollectionRegionAccessStrategy;
import org.hibernate.cache.CacheException;
import org.hibernate.cache.spi.access.AccessType;
import org.junit.Test;
import static org.fest.assertions.api.Assertions.assertThat;
import static org.hamcrest.CoreMatchers.containsString;

package kr.pe.kwonnam.hibernate4memcached.regions;



public class CollectionMemcachedRegionTest extends AbstractFinalMemcachedRegionTest {

    private CollectionMemcachedRegion collectionMemcachedRegion;

    @Override
    protected void afterSetUp() throws Exception {
        collectionMemcachedRegion = new CollectionMemcachedRegion("books.authors", properties, metadata, settings, memcachedAdapter, hibernateCacheTimestamper);
    }

    @Test
    public void buildAccessStrategy_AccessType_READ_ONLY() throws Exception {
        assertThat(collectionMemcachedRegion.buildAccessStrategy(AccessType.READ_ONLY))
                .isExactlyInstanceOf(ReadOnlyCollectionRegionAccessStrategy.class);