### Question:
TransactionBlockEvent extends SignedBinaryMessage { @Override public void writeMarshallable(@NotNull WireOut wire) { super.writeMarshallable(wire); wire.write("transactions").sequence(out -> replay(new WritingAllMessages() { @Override public WritingAllMessages to(long addressOrRegion) { throw new UnsupportedOperationException(); } @Override public void write(SignedBinaryMessage message) { out.object(message); } @Override public void close() { throw new UnsupportedOperationException(); } })); } TransactionBlockEvent();  TransactionBlockEvent(long capacity, boolean isFixedCapacity); TransactionBlockEvent dtoParser(DtoParser dtoParser); @Override void reset(); TransactionBlockEvent addTransaction(SignedBinaryMessage message); void replay(AllMessages allMessages); @Override void readMarshallable(@NotNull WireIn wire); @NotNull @Override T deepCopy(); @Override T copyTo(@NotNull T t); @Override void writeMarshallable(@NotNull WireOut wire); @Override int intMessageType(); Bytes transactions(); int weekNumber(); TransactionBlockEvent weekNumber(int weekNumber); long blockNumber(); TransactionBlockEvent blockNumber(long blockNumber); int region(); TransactionBlockEvent region(int region); TransactionBlockEvent region(String region); int count(); boolean isBufferFull(); static void printNumberOfObjects(); static public int MAX_16_BIT_NUMBER; static public long _1_MB; static public long _2_MB; static public long _4_MB; static public long _16_MB; static public long _32_MB; }### Answer:
@Test public void writeMarshallable() { TransactionBlockEvent tbe = new TransactionBlockEvent() .region("GBLDN") .addTransaction( new CreateNewAddressCommand(1, 2, Bytes.wrapForRead(new byte[32]), "gb1nd")) .addTransaction( new TransferValueCommand(0, 3, 1, 1.23, "XCL", "init")); assertEquals("!TransactionBlockEvent {\n" + " sourceAddress: .,\n" + " eventTime: 0,\n" + " region: GBLDN,\n" + " weekNumber: 0,\n" + " blockNumber: 0,\n" + " transactions: [\n" + " !CreateNewAddressCommand { sourceAddress: oooooooooooo2, eventTime: 2, publicKey: !!binary AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=, region: GBLND, newAddressSeed: ooooooooooooo },\n" + " !TransferValueCommand { sourceAddress: ooooooooooooo, eventTime: 3, toAddress: oooooooooooo2, amount: 1.23, currency: XCL, reference: init }\n" + " ]\n" + "}\n", tbe.toString().replaceAll("\r", "")); }