### Question:
JooqShipInConstructionDAO extends AbstractJooqDAO implements ShipInConstructionDAO { @Override public List<ShipInConstruction> findWithDone(long round) { LOGGER.debug("Finding ships in construction with done {}", round); Result<ShipInConstructionRecord> result = context().selectFrom(SHIP_IN_CONSTRUCTION).where(SHIP_IN_CONSTRUCTION.DONE.eq(round)).fetch(); return result.stream().map(this::fromRecord).collect(Collectors.toList()); } @Inject  JooqShipInConstructionDAO(UnitOfWorkService unitOfWorkService); @Override void insert(ShipInConstruction shipInConstruction); @Override List<ShipInConstruction> findWithDone(long round); @Override List<ShipInConstruction> findWithPlanetId(UUID planetId); @Override void delete(ShipInConstruction shipInConstruction);  }### Answer:
@Test public void testFindWithDone() throws Exception { ShipInConstruction expected = ShipInConstructionScenario.Player1.Planet1.SHIP_IN_CONSTRUCTION; List<ShipInConstruction> shipsInConstruction = sut.findWithDone(expected.getDone()); assertThat(shipsInConstruction, hasSize(1)); assertThat(shipsInConstruction.get(0), is(expected)); }
@Test public void testFindWithDone2() throws Exception { List<ShipInConstruction> shipsInConstruction = sut.findWithDone(100); assertThat(shipsInConstruction, hasSize(0)); }