@Test
public void defaultRepos() {

    int defaultRepoCount = RepoProviderTest.getDefaultRepoCount(context);
    List<Repo> defaultRepos = RepoProvider.Helper.all(context);
    assertEquals(defaultRepos.size(), defaultRepoCount);
    Repo gpRepo = RepoProvider.Helper.findByAddress(context, "https://guardianproject.info/fdroid/repo");
    setEnabled(gpRepo, true);
    assertEquals(2, RepoProvider.Helper.countEnabledRepos(context));
    PanicResponderActivity.resetRepos(context);
    assertEquals(1, RepoProvider.Helper.countEnabledRepos(context));
    defaultRepos = RepoProvider.Helper.all(context);
    assertEquals(defaultRepoCount, defaultRepos.size());
    RepoProviderTest.insertRepo(
            context,
            "https://mock-repo-1.example.com/fdroid/repo",
            "Just a made up repo",
            "ABCDEF1234567890",
            "Mock Repo 1"
    );
    defaultRepos = RepoProvider.Helper.all(context);
    assertEquals(defaultRepoCount + 1, defaultRepos.size());
    assertEquals(2, RepoProvider.Helper.countEnabledRepos(context));
    PanicResponderActivity.resetRepos(context);
    defaultRepos = RepoProvider.Helper.all(context);
    assertEquals(defaultRepoCount, defaultRepos.size());
    assertEquals(1, RepoProvider.Helper.countEnabledRepos(context));
}