public void testProcess() {
Trade trade = new Trade();
trade.setCustomer("testCustomerName");
trade.setPrice(new BigDecimal("123.0"));
CustomerDebitDao dao = new CustomerDebitDao() {
@Override
public void write(CustomerDebit customerDebit) {
assertEquals("testCustomerName", customerDebit.getName());
assertEquals(new BigDecimal("123.0"), customerDebit.getDebit());
}