public static void assertPartialConfirmation(LiferaySelenium liferaySelenium, String pattern)
      throws Exception {

    String confirmation = liferaySelenium.getConfirmation();

    if (!confirmation.contains(pattern)) {
      throw new Exception("\"" + confirmation + "\" does not contain \"" + pattern + "\"");
    }
  }
  public static void assertConfirmation(LiferaySelenium liferaySelenium, String pattern)
      throws Exception {

    String confirmation = liferaySelenium.getConfirmation();

    if (!pattern.equals(confirmation)) {
      throw new Exception("Pattern \"" + pattern + "\" does not match \"" + confirmation + "\"");
    }
  }
  public static boolean isConfirmation(LiferaySelenium liferaySelenium, String pattern) {

    String confirmation = liferaySelenium.getConfirmation();

    return pattern.equals(confirmation);
  }