### Question:
EntityCrawlerService { public Cycle getCycleOfObjective(Objective objectiveToCheck) { return this.getCycleOfParentUnit(objectiveToCheck.getParentOkrUnit()); }  Cycle getCycleOfCompany(OkrCompany okrCompanyToCheck); Cycle getCycleOfUnit(OkrUnit departmentToCheck); Cycle getCycleOfObjective(Objective objectiveToCheck); Cycle getCycleOfKeyResult(KeyResult keyResultToCheck); OkrCompany getCompanyOfUnit(OkrChildUnit departmentToCheck);  }### Answer:
@Test public void getCycleOfObjective_companyIsFirstParentOfParentDepartment_expectedCycle() { attachObjectiveToDepartment(objective, departmentChildFirstDegree); Cycle actualCycle = entityCrawlerService.getCycleOfObjective(objective); Assert.assertEquals(cycle, actualCycle); }
@Test public void getCycleOfObjective_companyIsNestedParentOfParentDepartment_expectedCycle() { attachObjectiveToDepartment(objective, okrDepartmentChildSecondDegree); Cycle actualCycle = entityCrawlerService.getCycleOfObjective(objective); Assert.assertEquals(cycle, actualCycle); }