@Test
public void testPutIfAbsent() throws Exception {

    String key = "key";
    String expected = "value";
    assertNull(springCache.putIfAbsent(key, expected));
    assertEquals(expected, springCache.putIfAbsent(key, "wrongValue").get());
    assertEquals(expected, springCache.get(key).get());
}