### Question:
ContextWriteSessionReference extends WeakReference<ContextWriteSession> { ContextWriteSessionState state() { return this.state; } ContextWriteSessionReference(ContextWriteSession referent, ContextWriteSessionState state, ReferenceQueue<ContextWriteSession> referenceQueue); @Override String toString();  }### Answer:
@Test public void testState() throws Exception { assertThat( this.sut.state(), sameInstance(state)); }