PostgreSQLComBindPacket extends PostgreSQLCommandPacket { @Override public char getMessageType() { return PostgreSQLCommandPacketType.BIND.getValue(); } PostgreSQLComBindPacket(final PostgreSQLPacketPayload payload, final int connectionId); @Override void write(final PostgreSQLPacketPayload payload); @Override char getMessageType();  }
@Test public void getMessageType() throws SQLException { PostgreSQLComBindPacket bindPacket = new PostgreSQLComBindPacket(payload, 1); assertThat(bindPacket.getMessageType(), is(PostgreSQLCommandPacketType.BIND.getValue())); }