### Question:
JooqPlanetDAO extends AbstractJooqDAO implements PlanetDAO { @Override public List<Planet> findWithOwnerId(UUID ownerId) { Preconditions.checkNotNull(ownerId, "ownerId"); LOGGER.debug("Finding planet with owner id {}", ownerId); Result<Record> result = context().select().from(PLANET).where(PLANET.OWNER_ID.eq(ownerId)).orderBy(PLANET.COLONIZED_IN_ROUND).fetch(); return result.stream().map(PlanetMapper::fromRecord).collect(Collectors.toList()); } @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 testFindWithOwnerId() throws Exception { List<Planet> planets = sut.findWithOwnerId(BasicScenario.Player1.PLAYER.getId()); assertThat(planets, hasSize(2)); assertThat(planets.get(0), is(BasicScenario.Player1.Planet1.PLANET)); assertThat(planets.get(1), is(BasicScenario.Player1.Planet2.PLANET)); }