### Question:
JooqDetectedFlightDAO extends AbstractJooqDAO implements DetectedFlightDAO { @Override public void insert(DetectedFlight detectedFlight) { Preconditions.checkNotNull(detectedFlight, "detectedFlight"); LOGGER.debug("Inserting {}", detectedFlight); context().insertInto(DETECTED_FLIGHT, DETECTED_FLIGHT.FLIGHT_ID, DETECTED_FLIGHT.PLAYER_ID, DETECTED_FLIGHT.APPROXIMATED_FLEET_SIZE) .values(detectedFlight.getFlightId(), detectedFlight.getPlayerId(), detectedFlight.getApproximatedFleetSize()) .execute(); } @Inject  JooqDetectedFlightDAO(UnitOfWorkService unitOfWorkService); @Override void insert(DetectedFlight detectedFlight); @Override List<DetectedFlightWithSender> findWithPlayer(UUID playerId); @Override void delete(UUID id);  }### Answer:
@Test public void testInsert() throws Exception { DetectedFlight detectedFlight = new DetectedFlight(FlightScenario.Player1.FLIGHT_2.getId(), BasicScenario.Player1.PLAYER.getId(), 10); sut.insert(detectedFlight); List<Map<String, Object>> rows = select("SELECT * FROM detected_flight WHERE flight_id = ?", detectedFlight.getFlightId()); assertThat(rows, hasSize(1)); verifyRow(rows.get(0), detectedFlight); }