ReadOnlySession implements Session { @Override public Optional<String> get(String key) { return session.get(key); } ReadOnlySession(Session session); @Override Optional<String> get(String key); @Override void set(String key, String value); @Override void invalidate();  }
@Test void get() { assertThat(session.get("key")).isEmpty(); }