title: java infinispan the easiest example
body: <p>I would like to use infinispan (7.0.2.Final) to provide persistency for my server application written in java. Before I started to implement it, I tried the simplest scenario but it did not work...</p>
  
  <p>i.e I implemented two simple unit tests and I run them one after another (i.e. I run them separately).</p>
  
  <p>The first test consisted only of:</p>
  
  <pre><code>Cache&lt;Object, Object&gt; c = new DefaultCacheManager().getCache();
  c.put("key1", "value1");
  </code></pre>
  
  <p>And the second one:</p>
  
  <pre><code>Cache&lt;Object, Object&gt; c = new DefaultCacheManager().getCache();
  String result = (String) c.get("key1");
  </code></pre>
  
  <p>but I received result = null ...</p>
  
  <p>What am I doing wrong? I read on infinispan pages that should run out of the box...</p>