### Question:
PbftBlock extends AbstractConsensusBlock<PbftProto.PbftBlock> { @Override public JsonObject toJsonObject() { JsonObject jsonObject = new JsonObject(); jsonObject.add("block", getBlock().toJsonObject()); if (this.pbftMessageSet != null) { jsonObject.add("pbftMessageSet", this.pbftMessageSet.toJsonObject()); } return jsonObject; } PbftBlock(byte[] bytes);  PbftBlock(PbftProto.PbftBlock block);  PbftBlock(Block block, PbftMessageSet pbftMessageSet);  PbftBlock(JsonObject jsonObject); @Override PbftMessageSet getConsensusMessages(); @Override JsonObject getConsensusMessagesJsonObject(); @Override PbftProto.PbftBlock getInstance(); @Override byte[] toBinary(); @Override JsonObject toJsonObject(); @Override void clear(); @Override void loggingBlock(int unConfirmedTxs);  }### Answer:
@Test public void constuctorTest_Default() { log.debug(this.pbftBlock.toJsonObject().toString()); assertNotNull(this.pbftBlock); log.debug(this.pbftBlock2.toJsonObject().toString()); assertNotNull(this.pbftBlock2); log.debug(this.pbftBlock3.toJsonObject().toString()); assertNotNull(this.pbftBlock3); log.debug(this.pbftBlock4.toJsonObject().toString()); assertNotNull(this.pbftBlock4); }
@Test public void constuctorTest_JsonObect() { { PbftBlock newBlock = new PbftBlock(this.pbftBlock.toJsonObject()); log.debug(newBlock.toJsonObject().toString()); assertEquals(newBlock, this.pbftBlock); } { PbftBlock newBlock = new PbftBlock(this.pbftBlock2.toJsonObject()); log.debug(newBlock.toJsonObject().toString()); assertEquals(newBlock, this.pbftBlock2); } { PbftBlock newBlock = new PbftBlock(this.pbftBlock3.toJsonObject()); log.debug(newBlock.toJsonObject().toString()); assertEquals(newBlock, this.pbftBlock3); } { PbftBlock newBlock = new PbftBlock(this.pbftBlock4.toJsonObject()); log.debug(newBlock.toJsonObject().toString()); assertEquals(newBlock, this.pbftBlock4); } }