package pl.zankowski.iextrading4j.client.socket.manager;

import com.fasterxml.jackson.core.type.TypeReference;
import com.flextrade.jfixture.JFixture;
import com.google.common.collect.Lists;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.Test;
import pl.zankowski.iextrading4j.api.util.ToStringVerifier;

import java.util.List;

import static org.assertj.core.api.Assertions.assertThat;

public class SocketRequestTest {

    private final JFixture fixture = new JFixture();

    @Test
    public void constructor() {
        final TypeReference<String> responseType = new TypeReference<String>() {
        };
        final String path = fixture.create(String.class);
        final List<String> params = Lists.newArrayList();

        final SocketRequest<String> request = new SocketRequest<>(responseType, path, params);

        assertThat(request.getPath()).isEqualTo(path);
        assertThat(request.getResponseType()).isEqualTo(responseType);
        assertThat(request.getParam()).isEqualTo(params);
    }

    @Test
    public void equalsContract() {
        EqualsVerifier.forClass(SocketRequest.class)
                .usingGetClass()
                .verify();
    }

    @Test
    public void toStringVerification() {
        ToStringVerifier.forObject(fixture.create(SocketRequest.class))
                .verify();
    }

}

@@ -1279,42 +1279,44 @@
 ect(
-fixture.create(SocketRequest.class
+new SocketRequest%3C%3E(null, null, null
 ))%0A 

Increase code coverage