@Test
public void testPut() throws IOException, ClassNotFoundException {

    String testHash = "testHash";
    String testObject = "testObject";
    Blockchain blockchain = new Blockchain(new BlockchainContext());
    Assert.assertNull(blockchain.getUnit(BlockchainUnitType.BLOCK).getCache().get(testHash));
    blockchainService.put(testHash,  testObject, blockchain, BlockchainUnitType.BLOCK);
    Assert.assertNotNull(blockchain.getUnit(BlockchainUnitType.BLOCK).getCache().get(testHash));
    String str = blockchainService.get(testHash, blockchain, BlockchainUnitType.BLOCK);
    Assert.assertNotNull(str);
    Assert.assertEquals(testObject, str);
}