@@ -0,0 +1,1752 @@
+package me.proxer.library.api;%0A%0Aimport me.proxer.library.api.ConferenceAdapter.IntermediateConference;%0Aimport me.proxer.library.entitiy.messenger.Conference;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport java.util.Date;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0A/**%0A * @author Ruben Gees%0A */%0Apublic class ConferenceAdapterTest %7B%0A%0A    private ConferenceAdapter adapter;%0A%0A    @Before%0A    public void setUp() %7B%0A        adapter = new ConferenceAdapter();%0A    %7D%0A%0A    @Test%0A    public void testFromJson() %7B%0A        assertThat(adapter.fromJson(constructIntermediateConference(true)))%0A                .isEqualTo(constructConference(true));%0A    %7D%0A%0A    @Test%0A    public void testFromJsonWithNoImage() %7B%0A        assertThat(adapter.fromJson(constructIntermediateConference(false)))%0A                .isEqualTo(constructConference(false));%0A    %7D%0A%0A    private IntermediateConference constructIntermediateConference(boolean withImage) %7B%0A        IntermediateConference result = new IntermediateConference();%0A%0A        result.id = %22123%22;%0A        result.topic = %22something%22;%0A        result.customTopic = %22somethingElse%22;%0A        result.participantAmount = 13;%0A        result.group = true;%0A        result.read = false;%0A        result.date = new Date(123456L);%0A        result.unreadMessageAmount = 2;%0A        result.lastReadMessageId = %22321%22;%0A        result.image = withImage ? %22avatar:http://example.com/image.png%22 : %22%22;%0A%0A        return result;%0A    %7D%0A%0A    private Conference constructConference(boolean withImage) %7B%0A        return new Conference(%22123%22, %22something%22, %22somethingElse%22, 13,%0A                withImage ? %22http://example.com/image.png%22 : %22%22, withImage ? %22avatar%22 : %22%22, true, false,%0A                new Date(123456L), 2, %22321%22);%0A    %7D%0A%7D

Add tests for the ConferenceAdapter