### Question:
BodyValidation { public static Hash ommersHash(final List<BlockHeader> ommers) { return Hash.wrap(keccak256(RLP.encode(out -> out.writeList(ommers, BlockHeader::writeTo)))); } private  BodyValidation(); static Hash transactionsRoot(final List<Transaction> transactions); static Hash receiptsRoot(final List<TransactionReceipt> receipts); static Hash ommersHash(final List<BlockHeader> ommers); static LogsBloomFilter logsBloom(final List<TransactionReceipt> receipts);  }### Answer:
@Test public void calculateOmmersHash() throws IOException { for (final int block : Arrays.asList(300006, 4400002)) { final BlockHeader header = ValidationTestUtils.readHeader(block); final BlockBody body = ValidationTestUtils.readBody(block); final Bytes32 ommersHash = BodyValidation.ommersHash(body.getOmmers()); Assertions.assertThat(header.getOmmersHash()).isEqualTo(ommersHash); } }