<BUG>am.addAccount("google.com", "auth_token_type", null, expectedAddAccountOptions, new Activity(), null, null);Bundle actualAddAccountOptions = shadowOf(am).getNextAddAccountOptions();</BUG><CONTEXT>public void addAccount_withOptionsShouldSupportGetNextAddAccountOptions() throws Exception {assertThat(shadowOf(am).getNextAddAccountOptions()).isNull();shadowOf(am).addAuthenticator("google.com");Bundle expectedAddAccountOptions = new Bundle();expectedAddAccountOptions.putString("option", "value");<extra_id_0>assertThat(shadowOf(am).getNextAddAccountOptions()).isNull();assertThat(actualAddAccountOptions).isEqualTo(expectedAddAccountOptions);</CONTEXT>
AccountManagerFuture<Bundle> future = am.addAccount("google.com", "auth_token_type", null, expectedAddAccountOptions, new Activity(), null, null);future.getResult();Bundle actualAddAccountOptions = shadowOf(am).getNextAddAccountOptions();