ItemWriteService implements ItemWriteFacade { @Override public ICResponse<Boolean> delete(ItemDeleteRequest request) { log.info("##delete request param:{}", JSON.toJSONString(request)); ICResponse<Boolean> delete = itemWriteFacade.delete(request); return delete; }  @Override ICResponse<Long> create(ItemCreateRequest request); @Override ICResponse<Boolean> update(ItemUpdateRequest request); @Override ICResponse<Boolean> delete(ItemDeleteRequest request); @Override ICResponse<Boolean> sellerUpdateStatus(ItemUpdateStatusRequest request);  }
@Test public void delete() { ItemDeleteRequest itemDeleteRequest = new ItemDeleteRequest(); itemDeleteRequest.setSellerId(1L); List<IdVersionPair> idVersionPairs = Lists.newArrayList(); IdVersionPair pair = new IdVersionPair(); pair.setId(1L); pair.setVersion(1); idVersionPairs.add(pair); itemDeleteRequest.setTargetList(idVersionPairs); ICResponse<Boolean> delete = itemWriteService.delete(itemDeleteRequest); assertNotNull(delete); assertTrue(delete.isSuccess()); assertTrue(delete.getResult()); }