@@ -0,0 +1,1809 @@
+package de.vorb.platon.model;%0A%0Aimport com.google.common.truth.Truth;%0Aimport org.junit.Test;%0A%0Apublic class CommentThreadTest %7B%0A%0A    @Test%0A    public void testEqualsById() throws Exception %7B%0A%0A        final CommentThread thread1 = new CommentThread();%0A        thread1.setId(1L);%0A%0A        Truth.assertThat(thread1.equalsById(thread1)).isTrue();%0A%0A        final CommentThread thread1Copy = new CommentThread();%0A        thread1Copy.setId(1L);%0A%0A        Truth.assertThat(thread1.equalsById(thread1Copy)).isTrue();%0A        Truth.assertThat(thread1Copy.equalsById(thread1)).isTrue();%0A%0A        final CommentThread thread2 = new CommentThread();%0A        thread2.setId(2L);%0A%0A        Truth.assertThat(thread1.equalsById(thread2)).isFalse();%0A        Truth.assertThat(thread2.equalsById(thread1)).isFalse();%0A%0A        final CommentThread threadWithNullId = new CommentThread();%0A%0A        Truth.assertThat(thread1.equalsById(threadWithNullId)).isFalse();%0A        Truth.assertThat(threadWithNullId.equalsById(thread1)).isFalse();%0A%0A        final CommentThread anotherThreadWithNullId = new CommentThread();%0A%0A        Truth.assertThat(threadWithNullId.equalsById(anotherThreadWithNullId)).isFalse();%0A        Truth.assertThat(anotherThreadWithNullId.equalsById(threadWithNullId)).isFalse();%0A%0A    %7D%0A%0A    @Test%0A    public void testHashCode() throws Exception %7B%0A        final String articleUrl = %22http://example.com/article%22;%0A        final String articleTitle = %22Article%22;%0A%0A        final CommentThread thread1 = new CommentThread(articleUrl, articleTitle);%0A        thread1.setId(42L);%0A%0A        final CommentThread thread2 = new CommentThread(articleUrl, articleTitle);%0A        thread2.setId(42L);%0A%0A        Truth.assertThat(thread1).isEqualTo(thread2);%0A        Truth.assertThat(thread1.hashCode()).isEqualTo(thread2.hashCode());%0A    %7D%0A%0A%7D%0A

Add test for CommentThread