PostgreSQLUnsupportedCommandPacket extends PostgreSQLCommandPacket { @Override public void write(final PostgreSQLPacketPayload payload) { }  @Override void write(final PostgreSQLPacketPayload payload);  }
@Test public void assertWrite() { PostgreSQLUnsupportedCommandPacket rowPacket = new PostgreSQLUnsupportedCommandPacket(PostgreSQLCommandPacketType.AUTHENTICATION_OK.getValue()); rowPacket.write(new PostgreSQLPacketPayload(byteBuf)); assertThat(byteBuf.writerIndex(), is(0)); }