// Path: src/main/java/com/deswaef/twitch/api/chat/domain/ChatLinksInformation.java
// public class ChatLinksInformation {
// 
//     @SerializedName("emoticons")
//     private String emoticonsUrl;
//     @SerializedName("badges")
//     private String badgesUrl;
// 
//     public String getEmoticonsUrl() {
//         return emoticonsUrl;
//     }
// 
//     public void setEmoticonsUrl(String emoticonsUrl) {
//         this.emoticonsUrl = emoticonsUrl;
//     }
// 
//     public String getBadgesUrl() {
//         return badgesUrl;
//     }
// 
//     public void setBadgesUrl(String badgesUrl) {
//         this.badgesUrl = badgesUrl;
//     }
// }


import com.deswaef.twitch.api.chat.domain.ChatLinksInformation;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import retrofit.RestAdapter;
import java.util.Optional;
import static org.fest.assertions.Assertions.assertThat;
import static org.mockito.Mockito.when;
package com.deswaef.twitch.api.chat;




public class ChatResourceTest {

    private ChatResource resource;

    private RestAdapter restAdapter;

    @Mock
    private ChatService chatService;

    @Before
    public void init() {
        restAdapter = new RestAdapter.Builder()
                .setEndpoint("https://api.twitch.tv/kraken")
                .build();
        resource = new ChatResource().url(restAdapter);
    }

    @Test
    public void getValidChatResource() {
        Optional<ChatLinksInformation> streamingforanimals = resource.chatUser("streamingforanimals");
        assertThat(streamingforanimals.isPresent()).isTrue();
    }

    @Test
    public void chatInformationIsMappedCorrectly(){
// Path: src/main/java/com/deswaef/twitch/api/chat/domain/ChatLinksInformation.java
// public class ChatLinksInformation {
// 
//     @SerializedName("emoticons")
//     private String emoticonsUrl;
//     @SerializedName("badges")
//     private String badgesUrl;
// 
//     public String getEmoticonsUrl() {
//         return emoticonsUrl;
//     }
// 
//     public void setEmoticonsUrl(String emoticonsUrl) {
//         this.emoticonsUrl = emoticonsUrl;
//     }
// 
//     public String getBadgesUrl() {
//         return badgesUrl;
//     }
// 
//     public void setBadgesUrl(String badgesUrl) {
//         this.badgesUrl = badgesUrl;
//     }
// }


// Path: src/test/java/com/deswaef/twitch/api/chat/ChatResourceTest.java
import com.deswaef.twitch.api.chat.domain.ChatLinksInformation;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import retrofit.RestAdapter;
import java.util.Optional;
import static org.fest.assertions.Assertions.assertThat;
import static org.mockito.Mockito.when;

package com.deswaef.twitch.api.chat;




public class ChatResourceTest {

    private ChatResource resource;

    private RestAdapter restAdapter;

    @Mock
    private ChatService chatService;

    @Before
    public void init() {
        restAdapter = new RestAdapter.Builder()
                .setEndpoint("https://api.twitch.tv/kraken")
                .build();
        resource = new ChatResource().url(restAdapter);
    }

    @Test
    public void getValidChatResource() {
        Optional<ChatLinksInformation> streamingforanimals = resource.chatUser("streamingforanimals");
        assertThat(streamingforanimals.isPresent()).isTrue();
    }

    @Test
    public void chatInformationIsMappedCorrectly(){
        Optional<ChatLinksInformation> streamingforanimals = resource.chatUser("streamingforanimals");