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