### Question:
TesService { public void randomAdd(int i) { List<String> names = Arrays.asList(new String[]{"a", "b", "c"}); for (int i1 = 0; i1 < i; i1++) { String s = names.get(rand.nextInt(names.size())); Es es = new Es(); es.setName(s); es.setId(new Long(i1)); add(es); } }  void randomAdd(int i); @Transactional void add(Es es);  }### Answer:
@Test public void t() throws IOException { tesService.randomAdd(10); workService.work(); }