@Test
public void testAddBlock() {

    TransactionsPool transactionsProcessed = new TransactionsPool();
    Block block = new Block();
    for (int i = 0; i < 10; i++) {
        BlockUtil.addTransactionInBlock(block, new byte[]{(byte) i});
    }
    transactionsProcessed.addBlock(block);
    TestCase.assertEquals(10, transactionsProcessed.lastTransactions.size());
    TestCase.assertTrue(transactionsProcessed.checkExists(Util.getDataEncoded64(new byte[]{(byte) 3})));
    TestCase.assertFalse(transactionsProcessed.checkExists(Util.getDataEncoded64(new byte[]{(byte) 11})));
}