@Test
    public void testScopedStorage() {
        User org1 = User.builder()
                .id(20L)
                .build();

        RecentRepositories recent1 = new RecentRepositories(getTargetContext(), org1);
        long id1 = 1234;
        recent1.add(id1);
        assertTrue(recent1.contains(id1));

        User org2 = User.builder()
                .id(40L)
                .build();

        RecentRepositories recent2 = new RecentRepositories(getTargetContext(), org2);
        assertFalse(recent2.contains(id1));
        long id2 = 2345;
        recent2.add(id2);
        assertTrue(recent2.contains(id2));

        recent2.save();
        recent1 = new RecentRepositories(getTargetContext(), org1);
        assertFalse(recent1.contains(id2));
    }
Verify repositories are scoped to organization
app/src/androidTest/java/com/github/pockethub/android/tests/repo/RecentRepositoriesTest.java