View Javadoc
1   package com.atlassian.cache.ehcache.wrapper;
2   
3   import org.junit.Before;
4   import org.junit.Test;
5   
6   import static org.junit.Assert.assertSame;
7   
8   public class NoopValueProcessorTest {
9   
10      private NoopValueProcessor tested;
11  
12      @Before
13      public void init() {
14          tested = new NoopValueProcessor();
15      }
16  
17      @Test
18      public void testWrappingAndUnwrappingResultsAreSame() {
19          Object value = new Object();
20  
21          assertSame(value, tested.wrap(value));
22          assertSame(value, tested.unwrap(value));
23      }
24  }