### Question:
JooqBuildingDAO extends AbstractJooqDAO implements BuildingDAO { @Override public Buildings findWithPlanetId(UUID planetId) { Preconditions.checkNotNull(planetId, "planetId"); LOGGER.debug("Finding buildings with planet id {}", planetId); Result<Record> result = context().select().from(BUILDING).where(BUILDING.PLANET_ID.eq(planetId)).fetch(); return new Buildings(result.stream().map(BuildingMapper::fromRecord).collect(Collectors.toList())); } @Inject  JooqBuildingDAO(UnitOfWorkService unitOfWorkService); @Override Buildings findWithPlanetId(UUID planetId); @Override void insert(Building building); @Override void update(Building building); @Override Optional<Building> findWithPlanetLocationAndType(Location location, BuildingType type); @Override Optional<Building> findWithPlanetIdAndType(UUID planetId, BuildingType type);  }### Answer:
@Test public void testFindWithPlanetId() throws Exception { Buildings buildings = sut.findWithPlanetId(BasicScenario.Player1.Planet1.PLANET.getId()); assertThat(buildings, hasSize(2)); assertThat(buildings.get(0), is(BasicScenario.Player1.Planet1.COMMAND_CENTER)); assertThat(buildings.get(1), is(BasicScenario.Player1.Planet1.SHIPYARD)); }