@Test
  public void should_not_display_any_movie_when_none_contain_user_filter_string() throws Exception {
    // when
    availableMoviesScreen.userEntersFilterText("some unknown movie");

    // then
    availableMoviesScreen.displaysNoMovies();
  }
  @Test
  public void should_only_display_one_movie_which_title_contain_user_filter_string()
      throws Exception {
    // when
    availableMoviesScreen.userEntersFilterText("dark knig");

    // then
    availableMoviesScreen.displaysMovies("The Dark Knight Rises");
  }
  @Test
  public void should_only_display_available_quantity_for_movies_that_are_rented() throws Exception {
    // given: "Be Kind Rewind" is rented twice
    newRental()
        .customerNumber("11111")
        .movieCode("BEKINDREWI2008")
        .rentalDate(new LocalDate())
        .notReturned()
        .insert();
    newRental()
        .customerNumber("22222")
        .movieCode("BEKINDREWI2008")
        .rentalDate(new LocalDate())
        .notReturned()
        .insert();

    // then
    availableMoviesScreen.displaysMovie().withTitle("Be Kind Rewind").withAvailableQuantity(3);
  }
 @Test
 public void should_display_total_owned_quantity_for_movies_that_are_not_rented()
     throws Exception {
   availableMoviesScreen.displaysMovie().withTitle("Be Kind Rewind").withAvailableQuantity(5);
 }
 @Test
 public void should_display_right_price_for_movies_older_than_1_year() throws Exception {
   availableMoviesScreen.displaysMovie().withTitle("Be Kind Rewind").withPrice("1.3");
 }
 @Test
 public void should_display_right_price_for_movies_younger_than_1_year() throws Exception {
   availableMoviesScreen.displaysMovie().withTitle("Avengers").withPrice("17.2");
 }
 @Test
 public void should_display_right_price_for_movies_younger_than_3_months() throws Exception {
   availableMoviesScreen.displaysMovie().withTitle("The Dark Knight Rises").withPrice("42.0");
 }
 @Test
 public void should_display_all_movies_when_not_filtered() throws Exception {
   availableMoviesScreen.displaysMovies(titlesOfMoviesInDatabase());
 }