@@ -0,0 +1,1424 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public%0A * License, v. 2.0. If a copy of the MPL was not distributed with this%0A * file, You can obtain one at http://mozilla.org/MPL/2.0/. */%0A%0Apackage org.mozilla.sync.login;%0A%0Aimport android.app.Activity;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.Mock;%0Aimport org.mockito.Mockito;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.anyInt;%0Aimport static org.mockito.Mockito.atLeastOnce;%0Aimport static org.mockito.Mockito.verify;%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class FirefoxSyncWebViewLoginManagerTest %7B%0A%0A    @Mock private Activity mockActivity;%0A%0A    private FirefoxSyncLoginManager loginManager;%0A%0A    @Before%0A    public void setUp() %7B%0A        loginManager = new FirefoxSyncWebViewLoginManager(Mockito.mock(Context.class));%0A    %7D%0A%0A    @Test%0A    public void testPromptLoginStartsActivity() throws Exception %7B%0A        loginManager.promptLogin(mockActivity, %22Bach%22, Mockito.mock(FirefoxSyncLoginManager.LoginCallback.class));%0A%0A        // In refactorings, startActivityForResult(Intent, int, Bundle) could also be called.%0A        verify(mockActivity, atLeastOnce()).startActivityForResult(any(Intent.class), anyInt());%0A    %7D%0A%0A%7D

Add testPromptLoginStartsActivity.