private Bytes stringParamToBytes(final String s) {
    if (s == null) {
      return null;
    }
    if (s.startsWith("0x")) {
      return Bytes.fromHexString(s);
    }
    return Bytes.wrap(s.getBytes(UTF_8));
  }
Public constructor.

@param inAsObj The set of inputs to insert into the Trie.
@param root The expected root hash of the Trie after all inputs have been entered.
ethereum/referencetests/src/reference-test/java/org/hyperledger/besu/ethereum/trie/TrieRefTestCaseSpec.java