title: The method assertThat(List<Flight>) is undefined for the type SpringDataOverviewApplicationTestsJava(67108964)
body: <p>I am trying to follow along with a pluralsight demo course on JPA and the test I just built is throwing an error on the assertThat method and I can't figure out why. I'm sure this is super obvious, but I can't find the solution on here or on the java documentation examples. Please send help in this new year.</p>
  <p>The error message</p>
  <pre><code>The method assertThat(List&lt;Flight&gt;) is undefined for the type SpringDataOverviewApplicationTestsJava(67108964)
  </code></pre>
  <p>The code</p>
  <pre><code>package com.pluralsight.springdataoverview;
  
  import java.time.LocalDateTime;
  import java.util.List;
  
  import javax.persistence.EntityManager;
  import javax.persistence.TypedQuery;
  
  import com.pluralsight.springdataoverview.entity.Flight;
  
  import org.junit.jupiter.api.Test;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
  import org.springframework.boot.test.context.SpringBootTest;
  
  
  @DataJpaTest
  class SpringDataOverviewApplicationTests {
  
      @Autowired
      private EntityManager entityManager;
  
      @Test
      public void verifyFlightCanBeSaved() {
          final Flight flight = new Flight();
          flight.setOrigin(&quot;Amsterdam&quot;); 
          flight.setDestination(&quot;New york&quot;);
          flight.setScheduledAt(LocalDateTime.parse(&quot;2011-12-13T12:12:00&quot;));
  
          entityManager.persist(flight);
  
          final TypedQuery&lt;Flight&gt; results = entityManager
              .createQuery(&quot;SELECT f FROM Flight f&quot;, Flight.class);
  
              final List&lt;Flight&gt; resultList = results.getResultList();
  
              assertThat(resultList)
                  .hasSize(1)
                  .first()
                  .isEqualTo(flight);
      }
  
  }
  </code></pre>