title: Values are not being populated into gemfire cache
body: <p>I have 2 xml config files as below</p>
  
  <p><strong>app-context.xml:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
      xmlns:gfe="http://www.springframework.org/schema/gemfire" xmlns:util="http://www.springframework.org/schema/util"
      xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
          http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"&gt;
  
  
      &lt;context:component-scan
          base-package="com.mycompany.data.testcache" /&gt;
      &lt;context:annotation-config /&gt;
  
      &lt;import resource="test-cache.xml" /&gt;
  
      &lt;bean id="testCache" class="org.springframework.data.gemfire.GemfireTemplate"&gt;
          &lt;property name="region" ref="region1" /&gt;
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong>test-cache.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gfe="http://www.springframework.org/schema/gemfire"
      xmlns:util="http://www.springframework.org/schema/util" xmlns:context="http://www.springframework.org/schema/context"
      xsi:schemaLocation="http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
          http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd 
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"&gt;
  
      &lt;context:component-scan
          base-package="com.mycompany.data.testcache" /&gt;
      &lt;context:annotation-config /&gt;
  
      &lt;util:properties id="props" location="classpath:test-cache.properties"&gt;
          &lt;prop key="log-level"&gt;info&lt;/prop&gt;
      &lt;/util:properties&gt;
  
      &lt;gfe:cache id="gemfire-cache" properties-ref="props" /&gt;
  
      &lt;gfe:local-region id="region1" cache-ref="gemfire-cache"&gt;
          &lt;gfe:cache-listener ref="listener" /&gt;
      &lt;/gfe:local-region&gt;
  
      &lt;bean id="listener"
          class="com.mycompany.data.TestLoggingCacheListener" /&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>and I have a test class called <strong>TestCache.java</strong></p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(locations = { "classpath:app-context.xml" })
  public class TestCache {
  
      @Autowired
      GemfireTemplate testCache;
  
      @Test
      public void testgetSomeValues() {
  
          HashMap&lt;String, String&gt; map1 = retrieveSomeValues();
  
          HashMap&lt;String, String&gt; map2 = retrieveSomeValues();
  
          assertEquals(Map1, Map2);
      }
  
      @Cacheable(value = "testCache")
      public HashMap&lt;String, String&gt; retrieveSomeValues() {
  
          HashMap&lt;String, String&gt; obj = new HashMap&lt;String, String&gt;();
          obj.put("600", "Auto");
          obj.put("601", "Life");
  
          return obj;
      }
  
  }
  </code></pre>
  
  <p>But I see nothing is actually being cached into the region. for both the method calls to retrieveSomeValues() method, the method is actually being executed instead of retrieving the values from the cache.</p>
  
  <p>Can I know what is wrong in the above test class. Can I know how can I use the @Cacheable to cache the values for the able retriveSomeValues() method?</p>