// Path: src/main/java/cern/entwined/exception/MemoryException.java
// public class MemoryException extends UnwrappableException {
// 
//     /**
//      * Exception version id.
//      */
//     private static final long serialVersionUID = -4855258409489444927L;
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException()
//      */
//     public MemoryException() {
//         super();
//         this.setUnwrap(false);
//     }
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException(String)
//      */
//     public MemoryException(String message) {
//         super(message);
//         this.setUnwrap(false);
//     }
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException(String, Throwable)
//      */
//     public MemoryException(String message, Throwable cause) {
//         super(message, cause);
//         this.setUnwrap(false);
//     }
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException(Throwable)
//      */
//     public MemoryException(Throwable cause) {
//         super(cause);
//         this.setUnwrap(false);
//     }
// 
// }


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import cern.entwined.exception.MemoryException;

/*
 * Entwined STM
 * 
 * (c) Copyright 2013 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
 * verbatim in the file "COPYING". In applying this licence, CERN does not waive the privileges and immunities granted
 * to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction.
 */
package cern.entwined;




/**
 * Unit tests for {@link STMUtils} class.
 * 
 * @author Ivan Koblik
 */
public class STMUtilsTest {

    Memory<TestSnapshot> memory;
    GlobalReference<Boolean> ref;

    @Before
    public void setUp() throws Exception {
        memory = new Memory<TestSnapshot>(new TestSnapshot());
        ref = null;
    }

    @After
    public void tearDown() throws Exception {
        memory = null;
        ref = null;
    }


// Path: src/main/java/cern/entwined/exception/MemoryException.java
// public class MemoryException extends UnwrappableException {
// 
//     /**
//      * Exception version id.
//      */
//     private static final long serialVersionUID = -4855258409489444927L;
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException()
//      */
//     public MemoryException() {
//         super();
//         this.setUnwrap(false);
//     }
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException(String)
//      */
//     public MemoryException(String message) {
//         super(message);
//         this.setUnwrap(false);
//     }
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException(String, Throwable)
//      */
//     public MemoryException(String message, Throwable cause) {
//         super(message, cause);
//         this.setUnwrap(false);
//     }
// 
//     /**
//      * @see UnwrappableException#OasisUnavailableException(Throwable)
//      */
//     public MemoryException(Throwable cause) {
//         super(cause);
//         this.setUnwrap(false);
//     }
// 
// }


// Path: src/test/java/cern/entwined/STMUtilsTest.java
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import cern.entwined.exception.MemoryException;

/*
 * Entwined STM
 * 
 * (c) Copyright 2013 CERN. This software is distributed under the terms of the Apache License Version 2.0, copied
 * verbatim in the file "COPYING". In applying this licence, CERN does not waive the privileges and immunities granted
 * to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction.
 */
package cern.entwined;




/**
 * Unit tests for {@link STMUtils} class.
 * 
 * @author Ivan Koblik
 */
public class STMUtilsTest {

    Memory<TestSnapshot> memory;
    GlobalReference<Boolean> ref;

    @Before
    public void setUp() throws Exception {
        memory = new Memory<TestSnapshot>(new TestSnapshot());
        ref = null;
    }

    @After
    public void tearDown() throws Exception {
        memory = null;
        ref = null;
    }


    @Test
