AndroidAuthenticator implements Authenticator { public Account getAccount() { return mAccount; } AndroidAuthenticator(Context context, Account account, String authTokenType);  AndroidAuthenticator(Context context, Account account, String authTokenType, boolean notifyAuthFailure);   AndroidAuthenticator(AccountManager accountManager, Account account, String authTokenType, boolean notifyAuthFailure); Account getAccount(); String getAuthTokenType(); @SuppressWarnings("deprecation") @Override String getAuthToken(); @Override void invalidateAuthToken(String authToken);  }
@Test public void publicMethods() throws Exception { Context context = mock(Context.class); new AndroidAuthenticator(context, mAccount, "cooltype"); new AndroidAuthenticator(context, mAccount, "cooltype", true); Assert.assertSame(mAccount, mAuthenticator.getAccount()); }