SymbolService { public void addFavoriteSymbol(String fromSymbolCode, String toSymbolCode, String username) { favoriteSymbolRepository.save(new FavoriteSymbolEntity(fromSymbolCode, toSymbolCode, username)); log.info("Favorite symbol added:{}/{} user:{}", fromSymbolCode, toSymbolCode, username); }  Symbol addSymbol(String code, String name, String countryFlag, String currencyCode); Optional<Symbol> getForCode(String code); Optional<Symbol> getForCodeWithNoCurrency(String code); void addFavoriteSymbol(String fromSymbolCode, String toSymbolCode, String username); void deleteFavoriteSymbol(String fromSymbolCode, String toSymbolCode, String username);  }
@Sql("/sql/insert_user_symbol_favorite.sql") @Test public void testAddFavoriteSymbol() throws Exception { symbolService.addFavoriteSymbol(USD, EUR, "user"); }