### Question:
JooqResearchDAO extends AbstractJooqDAO implements ResearchDAO { @Override public List<Research> findWithDone(long round) { LOGGER.debug("Finding researches with round {}", round); Result<ResearchRecord> result = context().selectFrom(RESEARCH).where(RESEARCH.DONE.eq(round)).fetch(); return toList(result); } @Inject  JooqResearchDAO(UnitOfWorkService unitOfWorkService); @Override void insert(Research research); @Override List<Research> findWithDone(long round); @Override void delete(Research research); @Override List<Research> findWithPlanetId(UUID planetId); @Override List<Research> findWithPlayerAndType(UUID playerId, TechnologyType type);  }### Answer:
@Test public void testFindWithDone() throws Exception { Research research = ResearchScenario.Player1.Planet1.RESEARCH; List<Research> researches = sut.findWithDone(research.getDone()); assertThat(researches, hasSize(1)); assertThat(researches.get(0), is(research)); }
@Test public void testFindWithDone2() throws Exception { List<Research> researches = sut.findWithDone(1000); assertThat(researches, hasSize(0)); }