@Sql("/sql/insert_data.sql")
@Test
public void testAddSymbol_NotExistWithExistingCurrency() {

	// given
	String code = "TOTO";
	String name = "toto";
	var flag = "flag";
	String currencyCode = USD;
	// when
	Symbol result = symbolService.addSymbol(code, name, flag, currencyCode);
	// then
	assertThat(result).isEqualToIgnoringGivenFields(new Symbol(code, name, flag, new Symbol(USD, "US Dollar", "us", null)));
	
	var savedSymbol = symbolRepo.findById(code).get();
	assertThat(savedSymbol.getCode()).isEqualTo(code);
	assertThat(savedSymbol.getName()).isEqualTo(name);
	assertThat(savedSymbol.getCountryFlag()).isEqualTo(flag);
	assertThat(savedSymbol.getCurrency().getCode()).isEqualTo(currencyCode);
}