SessionManager implements SessionContext { @Override public void invalidate(String key, String value) { if (store == null) throw new Error("site().session() must be configured"); if (key == null || value == null) throw new Error("key/value must not be null"); store.invalidateByKey(key, value); }  Session load(Request request, ActionLog actionLog); void save(RequestImpl request, Response response, ActionLog actionLog); void store(SessionStore store); void timeout(Duration timeout); void cookie(String name, String domain); void header(String name); @Override void invalidate(String key, String value);  }
@Test void invalidate() { assertThatThrownBy(() -> sessionManager.invalidate(null, null)) .isInstanceOf(Error.class) .hasMessageContaining("must not be null"); }