@Test
  public void testCreateScalableApplication() {
    OpenShiftExplorerView explorer = new OpenShiftExplorerView();
    explorer.getApplication(Datastore.USERNAME, Datastore.DOMAIN, applicationName).select();

    new ContextMenu(OpenShiftLabel.ContextMenu.APPLICATION_DETAILS).select();

    new WaitUntil(
        new ShellWithTextIsAvailable(OpenShiftLabel.Shell.APPLICATION_DETAILS), TimePeriod.LONG);

    new DefaultShell(OpenShiftLabel.Shell.APPLICATION_DETAILS);

    for (TreeItem item : new DefaultTree().getAllItems()) {
      if (item.getCell(0).equals("Cartridges")) {
        assertTrue(
            "There is not haproxy cartridge. Application is not scalable",
            item.getItems().size() == 1);
      }
    }

    new OkButton().click();

    new WaitWhile(
        new ShellWithTextIsAvailable(OpenShiftLabel.Shell.APPLICATION_DETAILS), TimePeriod.LONG);
    new WaitWhile(new JobIsRunning(), TimePeriod.LONG);
  }
  @Test
  public void testRefreshApplication() {
    OpenShiftExplorerView explorer = new OpenShiftExplorerView();
    explorer.getApplication(Datastore.USERNAME, Datastore.DOMAIN, applicationName).select();

    new ContextMenu(OpenShiftLabel.ContextMenu.REFRESH).select();

    new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG);

    try {
      new WaitUntil(
          new ApplicationIsDeployedSuccessfully(
              Datastore.USERNAME, Datastore.DOMAIN, applicationName, "OpenShift"),
          TimePeriod.VERY_LONG);
    } catch (WaitTimeoutExpiredException ex) {
      fail("Application has not been refreshed successfully.");
    }
  }