### Question:
TimelinessValidator { public boolean addAncestorBlockHash(byte[] blockHash,long blockNum,byte[] ancestorBlockHash,long ancestorBlockNum,HashSet<ByteArrayWrapper> txSet){ if(pendingBlockCache.get(blockHash) == null){ if(!validateBlockHash(blockHash,ancestorBlockNum,ancestorBlockHash)){ return false; } } ValidateBlock block = new ValidateBlock(blockHash, ancestorBlockNum, ancestorBlockHash, txSet); pendingBlockCache.remove(blockHash); ancestorBlockCache.put(blockNum, block); maxAncestorBlockNum = blockNum; return true; } TimelinessValidator();  TimelinessValidator(Map<Long,ValidateBlock> map, long maxAncestorBlockNum); boolean validateBlockHash(byte[] blockHash,long ancestorBlockNum,byte[] ancestorBlockHash); boolean addBlockHash(byte[] blockHash, long ancestorBlockNum, byte[] ancestorBlockHash, HashSet<ByteArrayWrapper> txSet); boolean addAncestorBlockHash(byte[] blockHash,long blockNum,byte[] ancestorBlockHash,long ancestorBlockNum,HashSet<ByteArrayWrapper> txSet); boolean validateTxHash(byte[] txHash,long ancestorBlockNum,byte[] ancestorBlockHash); boolean addTxHash(byte[] txHash,long ancestorBlockNum,byte[] ancestorBlockHash);  }### Answer:
@Test public void addAncestorBlockHash() { TimelinessValidator timelinessValidator = this.addHash(); Assert.assertNotNull(timelinessValidator); }