@Test
public void getAccountDetailsCompletesAndEmitsAccountDetails() {

    stubPreferencesHelperGetAccessToken(TestDataFactory.makeAccessToken());
    List<Account> accounts = TestDataFactory.makeAccounts(1);
    MondroidService.AccountsResponse accountsResponse = new MondroidService.AccountsResponse();
    accountsResponse.accounts = accounts;
    stubMondoServiceGetAccounts(Single.just(accountsResponse));
    Balance balance = TestDataFactory.makeBalance();
    stubMondoServiceGetBalance(Single.just(balance));
    List<Transaction> transactions = TestDataFactory.makeTransactions(5);
    MondroidService.TransactionResponse transactionResponse = new MondroidService.TransactionResponse();
    transactionResponse.transactions = transactions;
    stubMondoServiceGetTransactions(Single.just(transactionResponse));
    DataManager.AccountData accountData = new DataManager.AccountData(balance, transactions);
    TestSubscriber<DataManager.AccountData> testSubscriber = new TestSubscriber<>();
    mDataManager.getAccountDetails().subscribe(testSubscriber);
    testSubscriber.assertCompleted();
    testSubscriber.assertValue(accountData);
}