Session saved = save(data);
data.clear();
assertThat("saved session", saved, not(Matchers.sameInstance(data)));
assertThat("saved session expiration time", saved.maxAge(), equalTo(maxAge));
assertThat("saved session keys", saved.keys(), Matchers.<Object>contains("a", "b", "c"));
assertThat("saved session values", saved.values(), Matchers.<Object>contains("Alice", "Bob", "Chris"));
}
@Test public void
loadsSessionContentDefensively() {