@Test(expected = IllegalArgumentException.class)
public void testCheckShouldThrowException() {

    TransactionsPool transactionsProcessed = new TransactionsPool();
    transactionsProcessed.checkExists(null);
}