### Question:
JooqEventDAO extends AbstractJooqDAO implements EventDAO { @Override public void insert(Event event) { Preconditions.checkNotNull(event, "event"); LOGGER.debug("Inserting event {}", event); context() .insertInto(EVENT, EVENT.ID, EVENT.PLAYER_ID, EVENT.PLANET_ID, EVENT.TYPE, EVENT.ROUND, EVENT.FIGHT_ID) .values(event.getId(), event.getPlayerId(), event.getPlanetId(), event.getType().getId(), event.getRound(), event.getFightId().orElse(null)) .execute(); } @Inject  JooqEventDAO(UnitOfWorkService unitOfWorkService); @Override void insert(Event event); @Override List<EventWithPlanet> findSince(UUID playerId, long round); @Override List<EventWithPlanet> findSinceMax(UUID playerId, long round, int max);  }### Answer:
@Test public void testInsert() throws Exception { Event event = new Event(UUID.fromString("e5a7d64d-56e0-4ada-8d0f-eef367d5dfcf"), BasicScenario.Player1.PLAYER.getId(), BasicScenario.Player1.Planet2.PLANET.getId(), EventType.FLIGHT_DETECTED, 1, Optional.<UUID>empty()); sut.insert(event); List<Map<String, Object>> result = select("SELECT * FROM event WHERE id = ?", event.getId()); assertThat(result, hasSize(1)); verifyRow(result.get(0), event); }