DatastoreStore extends StoreBase { @Override public void clear() throws IOException { log.debug("Deleting all sessions"); datastore.delete(Arrays.stream(keys()) .map(this::newKey) .toArray(Key[]::new)); }  @Override int getSize(); @Override String[] keys(); @Override Session load(String id); @Override void remove(String id); @Override void clear(); @Override void save(Session session); @Override void processExpires(); void setNamespace(String namespace); void setSessionKind(String sessionKind); void setTraceRequest(boolean traceRequest);  }
@Test public void testClearStore() throws Exception { store.clear(); verify(datastore).delete(any(Key.class)); }