@Test
 public void getPendingCryptoRouterEventsTest()
     throws CantCheckAssetDistributionProgressException,
         UnexpectedResultReturnedFromDatabaseException {
   List<String> list = mockAssetDistributionDao.getPendingCryptoRouterEvents();
   Assert.assertNotNull(list);
 }
  @Test
  public void getPendingCryptoRouterEventsThrowsCantCheckAssetDistributionProgressException()
      throws Exception {
    when(pluginDatabaseSystem.openDatabase(
            pluginId, AssetDistributionDatabaseConstants.ASSET_DISTRIBUTION_DATABASE))
        .thenThrow(new CantOpenDatabaseException("error"));

    try {
      mockAssetDistributionDao.getPendingCryptoRouterEvents();
      fail("The method didn't throw when I expected it to");
    } catch (Exception ex) {
      Assert.assertTrue(ex instanceof CantCheckAssetDistributionProgressException);
    }
  }