@SPITest public void testRemoveRemoves() throws LegalSPITesterException { try { K key = factory.createKey(8734L); store.put(key, factory.createValue(834L)); StoreEventListener<K, V> listener = addListener(store); store.remove(key); verifyListenerInteractions(listener); } catch (StoreAccessException e) { throw new LegalSPITesterException("Warning, an exception is thrown due to the SPI test"); } }