The first assignment of the USS Enterprise-D in 2364, in which Captain Picard had to solve the mystery of Farpoint Station on Deneb IV while the entity Q judged humanity by the result.
The Farpoint mission is the event shown in Encounter at Farpoint, the opening story of The Next Generation. The newly commissioned Enterprise-D is sent to Deneb IV to collect several senior officers, including William Riker, and to assess a remarkably convenient starbase offered to Starfleet by the Bandi.
On the way the ship is stopped by Q, who puts humanity on trial as a savage species and agrees to treat the mission as a test. At Deneb IV the crew find that the station can produce whatever visitors wish for, and the Bandi leader, Groppler Zorn, evades their questions.
When an unknown vessel attacks the old Bandi city, Picard works out that both the vessel and the station are living, shape-changing creatures, one of them held captive and starved of energy by the Bandi. He frees the prisoner, the two creatures depart together and Q withdraws, for the time being.