### Question:
ConnAckMessage extends Message { @Override protected int messageLength() { return MESSAGE_LENGTH; } ConnAckMessage();  ConnAckMessage(Header header);  ConnAckMessage(ConnectionStatus status); ConnectionStatus getStatus(); @Override void setDup(boolean dup); @Override void setRetained(boolean retain); @Override void setQos(QoS qos); final static int MESSAGE_LENGTH; }### Answer:
@Test public void correctMeessageSize() throws IOException { ConnAckMessage msg = new ConnAckMessage(ConnectionStatus.ACCEPTED); byte[] data = msg.toBytes(); assertEquals(4, data.length); assertEquals(2, msg.messageLength()); }