private void assertContractInvariants(
      final DataStorageConfiguration dataStorageConfiguration,
      final String sourceFile,
      final String blockHash) {
    final GenesisState genesisState =
        GenesisState.fromJsonSource(
            dataStorageConfiguration,
            GenesisStateTest.class.getResource(sourceFile),
            ProtocolScheduleFixture.MAINNET);
    final BlockHeader header = genesisState.getBlock().getHeader();
    assertThat(header.getHash()).isEqualTo(Hash.fromHexString(blockHash));

    final MutableWorldState worldState = InMemoryKeyValueStorageProvider.createInMemoryWorldState();
    genesisState.writeStateTo(worldState);
    final Account contract =
        worldState.get(Address.fromHexString("0x3850000000000000000000000000000000000000"));
    assertThat(contract.getCode()).isEqualTo(Bytes.fromHexString(EXPECTED_CODE));
    assertStorageValue(
        contract,
        "c2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d",
        "00000000000000000000000038500f1002084341bf47ee913c4dc2cd92ede0ea");
    assertStorageValue(
        contract,
        "c2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f860",
        "000000000000000000000000385ef55e292fa39cf5ffbad99f534294565519ba");
  }
Known Hash of the Olympic Genesis Block.
ethereum/core/src/test/java/org/hyperledger/besu/ethereum/chain/GenesisStateTest.java