/**
  * Creates an application with the specified name. The application class will have just one field.
  *
  * @param appName the name of the application to create
  */
 private void createApplication(String appName) {
   ApplicationCreatePage appCreatePage = homePage.clickCreateApplication();
   appCreatePage.setApplicationName(appName);
   appCreatePage.waitForApplicationNamePreview();
   ApplicationClassEditPage classEditPage = appCreatePage.clickNextStep();
   classEditPage.addField("Short Text");
   // Wait for the application home edit page to load before clicking finish to be sure the page
   // layout is stable.
   classEditPage
       .clickNextStep()
       .waitUntilPageIsLoaded()
       .clickFinish()
       .clickBreadcrumbLink(AppWithinMinutesHomePage.TITLE);
   homePage = new AppWithinMinutesHomePage();
 }