ReserveServiceImpl implements ReserveService { @Override public Reserve findOne(String reserveNo) { return authorizedReserveSharedService.findOne(reserveNo); }  @Override Reserve findOne(String reserveNo); @Override List<Reserve> findAllByCustomerCode(String customerCode); @Override ReserveTourOutput reserve(
            ReserveTourInput input); @Override void cancel(String reserveNo); @Override ReservationUpdateOutput update(
            ReservationUpdateInput input);  }
@Test public void testFindOne01() { Reserve reserve = new Reserve(); when(reserveRepository.findById("foo")).thenReturn(Optional.of( reserve)); Reserve result = reserveService.findOne("foo"); assertThat(result, is(reserve)); }
@Test public void testFindOne02() { when(reserveRepository.findById("foo")).thenReturn(Optional.empty()); Reserve result = reserveService.findOne("foo"); assertThat(result, is(nullValue())); }