class 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);
	}

}

class SymbolServiceTest {

	@Autowired
	private SymbolRepository symbolRepo;
	@Autowired
	private SymbolService symbolService;

	@Sql("/sql/insert_user_symbol_favorite.sql")
	@Test
	public void testAddFavoriteSymbol() throws Exception {

		symbolService.addFavoriteSymbol(USD, EUR, "user");
	}

}