SessionEstablished extends AbstractSessionState { @Override protected SessionState doNextAfterFail() { return new SessionClosing(session); } SessionEstablished(Session session); @Override void tryWrite(ByteBuf byteBuf); @Override String name(); @Override boolean equals(Object obj); @Override int hashCode(); @Override boolean isValidNext(SessionState sessionState); @Override String toString();  }
@Test public void testDoNextAfterFail() { Assert.assertEquals(new SessionClosing(frontend), sessionEstablished.nextAfterFail()); }