@Sql("/sql/insert_data.sql")
@Test
public void testAdd_alreadyExistsAsCurrency() throws Exception {

	// given
	String symbol = "EURUSD=X";
	String name = "EUR/USD";
	String provider = "Provider";
	
	when(lookupService.getDetails(symbol, provider)).thenReturn(new LookupDetails(symbol, name, "EUR", "USD", "CY", provider));
	
	// when
	assertThatThrownBy(() -> adminService.add(symbol, provider))
	.isInstanceOf(AdminException.class)
	.hasMessage("admin.error.currency-already-exists: [EUR]");
}