}
@Test
public void testThatSecurityIsCreatedIfNotFound_whenImportingAccountTransactions() throws ParseException
{
Client client = buildClient();
Account account = client.getAccounts().get(0);
AccountTransactionDef def = new AccountTransactionDef();
def.build(client, account, //
new String[] { "2013-01-01", "DE000BASF111", "BAS.DE", "BASF11", "100", "" }, //
buildField2Column(def));
AccountTransaction t = account.getTransactions().get(account.getTransactions().size() - 1);
assertThat(t.getAmount(), is(100L * Values.Amount.factor()));
assertThat(t.getDate(), is(Dates.date(2013, Calendar.JANUARY, 1)));
assertThat(t.getSecurity(), isIn(client.getSecurities()));
assertThat(t.getSecurity().getIsin(), is("DE000BASF111"));
assertThat(t.getSecurity().getTickerSymbol(), is("BAS.DE"));
assertThat(t.getSecurity().getWkn(), is("BASF11"));
}