SessionClosing extends AbstractSessionState { @Override protected SessionState doNextAfterSuccess() { return new SessionClosed(session); } SessionClosing(Session session); @Override void tryWrite(ByteBuf byteBuf); @Override String name(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testDoNextAfterSuccess() { Assert.assertEquals(new SessionClosed(frontend), seesionClosing.nextAfterSuccess()); }