@Test
void test_createAdBond2() throws Exception {

    //given
    Shop shop = shopRepository.save(new Shop("no", "name"));
    String expectedNo = "no";
    Customer customer = customerRepository.save(new Customer(expectedNo, "name", "bizNo", "ceo", shop));
    LocalDate startDate = LocalDate.of(2020,8,11);
    LocalDate endDate = LocalDate.of(2020,8,12);
    String orderType1 = "a";
    String orderType2 = "b";
    adItemRepository.save(new AdItem(orderType1, startDate, "1", 1000L, customer));
    adItemRepository.save(new AdItem(orderType2, endDate, "2", 2000L, customer));
    //when
    adItemService.createAdBond3(startDate, endDate, Arrays.asList(orderType1, orderType2));
    //then
    List<AdBond> adBonds = adBondRepository.findAll();
    assertThat(adBonds).hasSize(2);
    assertThat(adBonds.get(0).getCustomer().getCustomerNo()).isEqualTo(expectedNo);
    assertThat(adBonds.get(1).getCustomer().getCustomerNo()).isEqualTo(expectedNo);
}