@@ -0,0 +1,1413 @@
+package br.com.arbo.steamside.collections;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport org.junit.Test;%0A%0Aimport br.com.arbo.steamside.data.collections.NotFound;%0Aimport br.com.arbo.steamside.steam.client.types.AppId;%0Aimport br.com.arbo.steamside.types.CollectionName;%0A%0Apublic class InMemoryTagsHomeTest %7B%0A%0A%09@Test%0A%09public void testOnDeleteCollectionWithTags()%0A%09%7B%0A%09%09AppId app = new AppId(%22142857%22);%0A%09%09CollectionName a = new CollectionName(%22A%22);%0A%09%09tags.tagRemember(a, app);%0A%0A%09%09assert_allWithTags_count(1);%0A%09%09assert_tags_count(app, 1);%0A%09%09assert_recent_count(1);%0A%0A%09%09CollectionI aA = collections.find(a);%0A%09%09collections.delete(aA);%0A%0A%09%09assertNotFound(a);%0A%09%09assert_allWithTags_count(0);%0A%09%09assert_tags_count(app, 0);%0A%09%09assert_recent_count(0);%0A%09%7D%0A%0A%09private void assert_allWithTags_count(long n)%0A%09%7B%0A%09%09assertThat(tags.allWithTags().count(), equalTo(n));%0A%09%7D%0A%0A%09private void assert_recent_count(long n)%0A%09%7B%0A%09%09assertThat(tags.recent().count(), equalTo(n));%0A%09%7D%0A%0A%09private void assert_tags_count(AppId app, long n)%0A%09%7B%0A%09%09assertThat(tags.tags(app).count(), equalTo(n));%0A%09%7D%0A%0A%09private void assertNotFound(final CollectionName a)%0A%09%7B%0A%09%09try%0A%09%09%7B%0A%09%09%09collections.find(a);%0A%09%09%7D%0A%09%09catch (NotFound e)%0A%09%09%7B%0A%09%09%09/* ok */%0A%09%09%7D%0A%09%7D%0A%0A%09private final InMemoryCollectionsHome collections =%0A%09%09%09new InMemoryCollectionsHome();%0A%0A%09private final InMemoryTagsHome tags =%0A%09%09%09new InMemoryTagsHome(collections);%0A%0A%7D%0A

Fix InMemoryTagsHome leak