Exemplo n.º 1
0
    @Test
    public void shouldRemoveExistingElement() {
      final String key = "my element";
      byte[] value = {1, 2, 3};

      instance.put(key, value);
      instance.remove(key);

      StoredElement element = instance.get(key);
      assertNotNull(element);
      assertTrue(element instanceof StoredElement);
      assertTrue(element.elementIsNull());
    }