@Test(
     groups = "wso2.es.notification",
     description = "Testing mails for LC state " + "change event")
 public void testLCNotification() throws Exception {
   // check notification for initial LC state change
   driver.findElementPoll(By.linkText(assetName), MAX_POLL_COUNT);
   // read email using smtp
   boolean hasMail =
       ESUtil.containsEmail(smtpPropertyLocation, EMAIL_PWD, EMAIL, LCNotificationSubject);
   assertTrue(hasMail, "LC Notification failed for user:" + currentUserName);
 }
 @Test(
     groups = "wso2.es.notification",
     description = "Testing mails for asset update event",
     dependsOnMethods = "testLCNotification")
 public void testUpdateNotification() throws Exception {
   // Update gadget and check lC state change notification
   driver.get(baseUrl + PUBLISHER_GADGET_LIST_PAGE);
   AssetUtil.updateAsset(driver, baseUrl, ASSET_TYPE, assetName, ASSET_DESCRIPTION);
   driver.get(baseUrl + PUBLISHER_GADGET_LIST_PAGE);
   // read email using smtp
   boolean hasMail =
       ESUtil.containsEmail(smtpPropertyLocation, EMAIL_PWD, EMAIL, updateNotificationSubject);
   assertTrue(hasMail, "Asset Update Notification failed for user:" + currentUserName);
 }