@Test
public void testSaveMainBlockchain() throws FailedVerificationException {

	OpBlockChain opBlockChain = dbConsensusManager.init(metadataDb);
	generateMore30Blocks(formatter, opBlockChain, dbConsensusManager, BOOTSTRAP_LIST);
	final long[] amount = new long[1];
	jdbcTemplate.query("SELECT COUNT(*) FROM " + BLOCKS_TABLE + " WHERE superblock is NOT NULL", rs -> {
		amount[0] = rs.getLong(1);
	});
	assertEquals(0, amount[0]);
	dbConsensusManager.saveMainBlockchain(opBlockChain);
	jdbcTemplate.query("SELECT COUNT(*) FROM " + BLOCKS_TABLE + " WHERE superblock is NOT NULL", rs -> {
		amount[0] = rs.getLong(1);
	});
	assertEquals(40, amount[0]);
}