### Question:
EmployeeService { public Optional<Employee> findById(Long empId) { return this.employeeRepository.findById(empId); } EmployeeService(EmployeeRepository employeeRepository); List<Employee> findAll(); Optional<Employee> findById(Long empId);  }### Answer:
@Test public void test_findById_One() { var emp = this.employeeService.findById(1L); assertEquals("TEST-ONE", emp.get().getName()); }
@Test public void test_findById_Two() { var emp = this.employeeService.findById(2L); assertEquals("TEST-TWO", emp.get().getName()); }
@Test public void test_findById_Random() { var rnd = new Random(); var emp = this.employeeService.findById(rnd.nextInt(10000) + 2L); assertEquals("TEST-ANT", emp.get().getName()); }