import org.fluentlenium.adapter.FluentTest;
import org.junit.ClassRule;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.junit.Rule;

import static org.assertj.core.api.Assertions.assertThat;
import static org.fluentlenium.core.filter.FilterConstructor.*;

public class AppTest extends FluentTest {
  public WebDriver webDriver = new HtmlUnitDriver();

  @Override
  public WebDriver getDefaultDriver() {
    return webDriver;
  }

  @ClassRule
  public static ServerRule server = new ServerRule();

  @Rule
  public DatabaseRule database = new DatabaseRule();

  @Test
  public void rootTest() {
    goTo("http://localhost:4567/");
    assertThat(pageSource()).contains("Welcome to your Stylist Database");
  }

  @Test
  public void stylistIsCreatedTest() {
    Stylist newStylist = new Stylist("Otto Von Bismarck");
    newStylist.save();
    String stylistPath = String.format("http://localhost:4567/stylist/%d", newStylist.getId());
    goTo(stylistPath);
    assertThat(pageSource()).contains("Otto Von Bismarck");
  }

  @Test
  public void stylistIsDisplayedTest() {
    Stylist newStylist = new Stylist("Otto Von Bismarck");
    newStylist.save();
    String stylistPath = String.format("http://localhost:4567/");
    goTo(stylistPath);
    assertThat(pageSource()).contains("Otto Von Bismarck");
  }

}

@@ -1379,10 +1379,409 @@
 );%0A  %7D%0A%0A
+  @Test%0A  public void newClientIsCreatedTest() %7B%0A    Stylist newStylist = new Stylist(%22Otto Von Bismarck%22);%0A    newStylist.save();%0A    Client newClient = new Client(%22Wilhelm II%22, newStylist.getId());%0A    newClient.save();%0A    String stylistPath = String.format(%22http://localhost:4567/stylist/%25d%22, newStylist.getId());%0A    goTo(stylistPath);%0A    assertThat(pageSource()).contains(%22Wilhelm II%22);%0A  %7D%0A%0A
 %7D%0A

Add integration test to ensure clients are displayed on stylist page.