### Question:
JooqPlanetDAO extends AbstractJooqDAO implements PlanetDAO { @Override public void update(Planet planet) { Preconditions.checkNotNull(planet, "planet"); LOGGER.debug("Updating planet {}", planet); context().update(PLANET) .set(PLANET.LOCATION_GALAXY, planet.getLocation().getGalaxy()) .set(PLANET.LOCATION_SOLAR_SYSTEM, planet.getLocation().getSolarSystem()) .set(PLANET.LOCATION_PLANET, planet.getLocation().getPlanet()) .set(PLANET.OWNER_ID, planet.getOwnerId()) .set(PLANET.CRYSTALS, planet.getResources().getCrystals()) .set(PLANET.GAS, planet.getResources().getGas()) .set(PLANET.ENERGY, planet.getResources().getEnergy()) .set(PLANET.COLONIZED_IN_ROUND, planet.getColonizedInRound()) .where(PLANET.ID.eq(planet.getId())) .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 testUpdate() throws Exception { Planet planet = new Planet(BasicScenario.Player1.Planet1.PLANET.getId(), new Location(11, 11, 11), BasicScenario.Player1.PLAYER.getId(), new Resources(4, 8, 15), 1); sut.update(planet); List<Map<String, Object>> resultSet = select("SELECT * FROM planet WHERE id = ?", planet.getId()); assertThat(resultSet, hasSize(1)); verifyRow(resultSet.get(0), planet); }