@Test
    public void testReuseIssue() {
        GistStore store = new GistStore();
        assertNull(store.getGist("abcd"));

        Gist gist = Gist.builder()
                .id("abcd")
                .description("description")
                .build();

        // The gist is added and the store will return the given gist
        assertEquals(gist, store.addGist(gist));
        assertEquals(gist, store.getGist("abcd"));

        Gist gist2 = Gist.builder()
                .id("abcd")
                .description("description2")
                .build();

        // The gist has now been updated and should not return the same gist
        assertNotEquals(gist, store.addGist(gist2));
        assertNotEquals(gist.description(), gist2.description());
        assertNotEquals(gist, store.getGist("abcd"));
    }
Verify issue is updated when re-added
app/src/androidTest/java/com/github/pockethub/android/tests/gist/GistStoreTest.java