### Question:
JooqPlanetDAO extends AbstractJooqDAO implements PlanetDAO { @Override public void insert(Planet planet) { Preconditions.checkNotNull(planet, "planet"); LOGGER.debug("Inserting planet {}", planet); context().insertInto( PLANET, PLANET.ID, PLANET.LOCATION_GALAXY, PLANET.LOCATION_SOLAR_SYSTEM, PLANET.LOCATION_PLANET, PLANET.OWNER_ID, PLANET.CRYSTALS, PLANET.GAS, PLANET.ENERGY, PLANET.COLONIZED_IN_ROUND ).values( planet.getId(), planet.getLocation().getGalaxy(), planet.getLocation().getSolarSystem(), planet.getLocation().getPlanet(), planet.getOwnerId(), planet.getResources().getCrystals(), planet.getResources().getGas(), planet.getResources().getEnergy(), planet.getColonizedInRound() ).execute(); } @Inject  JooqPlanetDAO(UnitOfWorkService unitOfWorkService); @Override void insert(Planet planet); @Override List<Planet> findWithOwnerId(UUID ownerId); @Override Optional<Planet> findWithLocation(Location location); @Override void update(Planet planet); @Override List<Planet> findAll(); @Override Optional<Planet> findWithId(UUID id); @Override List<PlanetWithOwner> findInRange(int galaxyMin, int galaxyMax, int solarSystemMin, int solarSystemMax, int planetMin, int planetMax);  }### Answer:
@Test public void testInsert() throws Exception { Planet planet = new Planet(UUID.fromString("fd8694f8-c898-4ad4-80b6-a78780e63672"), new Location(11, 11, 11), BasicScenario.Player1.PLAYER.getId(), new Resources(1, 2, 3), 1); sut.insert(planet); List<Map<String, Object>> resultSet = select("SELECT * FROM planet WHERE id = ?", planet.getId()); assertThat(resultSet, hasSize(1)); verifyRow(resultSet.get(0), planet); }