SessionClosed extends AbstractSessionState { @Override public String name() { return "Session-Closed"; } SessionClosed(Session session); @Override void tryWrite(ByteBuf byteBuf); @Override String name(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testName() { Assert.assertEquals(sessionClosed.toString(), sessionClosed.name()); }