@Test
public void getTransactionsCompletesAndEmitsTransactions() {

    stubPreferencesHelperGetAccessToken(TestDataFactory.makeAccessToken());
    List<Transaction> transactions = TestDataFactory.makeTransactions(5);
    MondroidService.TransactionResponse transactionResponse = new MondroidService.TransactionResponse();
    transactionResponse.transactions = transactions;
    stubMondoServiceGetTransactions(Single.just(transactionResponse));
    TestSubscriber<List<Transaction>> testSubscriber = new TestSubscriber<>();
    mDataManager.getTransactions("account_id").subscribe(testSubscriber);
    testSubscriber.assertCompleted();
    testSubscriber.assertValue(transactions);
}