AdminService { public void delete(String code, String provider) { Stopwatch sw = Stopwatch.createStarted(); pairService.remove(code, provider); log.info("Pair [symbol: {}, provider: {}] deleted in: {}", code, provider, sw); }  SymbolInfo add(String code, String provider); void delete(String code, String provider); SearchResult search(String symbolOrName);  }
@Sql("/sql/insert_data.sql") @Test public void testDelete() throws Exception { String providerCode = "RR.L"; adminService.delete(providerCode, "YAHOO"); assertThat(pairService.getForCodeAndProvider(providerCode, "YAHOO")).isNull(); }