### Question:
BlockChainStoreBuilder { public ConsensusBlockStore buildBlockStore() { DbSource dbSource = getDbSource(branchId + "/blocks"); return blockStoreFactory.create(consensusAlgorithm, dbSource); } private  BlockChainStoreBuilder(BranchId branchId); BlockChainStoreBuilder withProductionMode(Boolean isProductionMode); BlockChainStoreBuilder withDataBasePath(String databasePath); BlockChainStoreBuilder setBlockStoreFactory(BlockStoreFactory blockStoreFactory); BlockChainStoreBuilder setConsensusAlgorithm(String consensusAlgorithm); static BlockChainStoreBuilder newBuilder(BranchId branchId); ConsensusBlockStore buildBlockStore(); BlockChainStore build();  }### Answer:
@Test public void buildBlockStore() { ConsensusBlock block = BlockChainTestUtils.genesisBlock(); ConsensusBlockStore store = builder.setBlockStoreFactory(PbftBlockStoreMock::new).buildBlockStore(); store.put(block.getHash(), block); assertThat(store.contains(block.getHash())).isTrue(); assertThat(store.get(block.getHash())).isEqualTo(block); }