Account { public Money getBalance() { return balance; } private  Account();  Account(AccountInfo accountInfo); Long getId(); long getCustomerId(); String getName(); Money getBalance(); AccountInfo getAccountInfo(); AccountState getState(); void debit(Money amount); void credit(Money amount); void noteCustomerValidated(); void noteCustomerValidationFailed();  }
@Test public void shouldOpen() { AccountInfo accountInfo = AccountMother.makeAccount(); Money initialBalance = accountInfo.getBalance(); openAccount(accountInfo); assertEquals(initialBalance, aggregate.getBalance()); }