@Test
    public void testReuseIssue() {
        IssueStore store = new IssueStore();
        Repository repo = InfoUtils.createRepoFromData("owner", "name");

        assertNull(store.getIssue(repo, 1));

        Issue issue = Issue.builder()
                .repository(repo)
                .number(1)
                .body("body")
                .build();
        assertEquals(issue, store.addIssue(issue));
        assertEquals(issue, store.getIssue(repo, 1));

        Issue issue2 = Issue.builder()
                .repository(repo)
                .number(1)
                .body("body2")
                .build();

        assertNotEquals(issue, store.addIssue(issue2));
        assertNotEquals(issue2.body(), issue.body());
        assertNotEquals(issue, store.getIssue(repo, 1));
    }
Verify issue is updated when re-added
app/src/androidTest/java/com/github/pockethub/android/tests/issue/IssueStoreTest.java