@Test
public void testValidateExistingOperation() throws FailedVerificationException {

	OpBlockChain opBlockChain = dbConsensusManager.init(metadataDb);
	generateOperations(formatter, opBlockChain);
	OpBlock opBlock = opBlockChain.createBlock(serverName, serverKeyPair);
	opBlock.getOperations().forEach(opOperation -> dbConsensusManager.insertOperation(opOperation));
	OpOperation opOperation = opBlock.getOperations().get(0);
	assertTrue(dbConsensusManager.validateExistingOperation(opOperation));
	assertEquals(1,
			dbConsensusManager.removeOperations(new HashSet<>(Collections.singletonList(opOperation.getHash()))));
	assertFalse(dbConsensusManager.validateExistingOperation(opOperation));
}