// Path: rsimulator-socket/src/main/java/com/github/bjuvensjo/rsimulator/socket/config/SocketModule.java
// public class SocketModule extends AbstractModule {
// 
//     /*
//      * (non-Javadoc)
//      *
//      * @see com.google.inject.AbstractModule#configure()
//      */
//     @Override
//     protected void configure() {
//         bind(new TypeLiteral<String>() {
//         }).annotatedWith(Names.named("simulatorContentType")).toInstance("txt");
// 
//         bind(new TypeLiteral<String>() {
//         }).annotatedWith(Names.named("encoding")).toInstance("Cp278");
// 
//         bind(new TypeLiteral<Integer>() {
//         }).annotatedWith(Names.named("headerLength")).toInstance(48);
// 
//         bind(new TypeLiteral<Integer>() {
//         }).annotatedWith(Names.named("headerBodyLengthBeginIndex")).toInstance(4);
// 
//         bind(new TypeLiteral<Integer>() {
//         }).annotatedWith(Names.named("headerBodyLengthEndIndex")).toInstance(8);
//     }
// }


import com.github.bjuvensjo.rsimulator.socket.config.SocketModule;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.name.Named;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import static org.apache.commons.lang.StringUtils.leftPad;
import static org.apache.commons.lang.StringUtils.rightPad;
import static org.junit.jupiter.api.Assertions.assertEquals;
package com.github.bjuvensjo.rsimulator.socket;




public class RequestReaderTest {

    @Inject
    @Named("encoding")
    private String encoding;

    @Inject
    @Named("headerLength")
    private int headerLength;

    @Inject
    @Named("headerBodyLengthBeginIndex")
    private int headerBodyLengthBeginIndex;

    @Inject
    @Named("headerBodyLengthEndIndex")
    private int headerBodyLengthEndIndex;

    @Inject
    private RequestReader requestReader;

    @BeforeEach
    public void init() {
// Path: rsimulator-socket/src/main/java/com/github/bjuvensjo/rsimulator/socket/config/SocketModule.java
// public class SocketModule extends AbstractModule {
// 
//     /*
//      * (non-Javadoc)
//      *
//      * @see com.google.inject.AbstractModule#configure()
//      */
//     @Override
//     protected void configure() {
//         bind(new TypeLiteral<String>() {
//         }).annotatedWith(Names.named("simulatorContentType")).toInstance("txt");
// 
//         bind(new TypeLiteral<String>() {
//         }).annotatedWith(Names.named("encoding")).toInstance("Cp278");
// 
//         bind(new TypeLiteral<Integer>() {
//         }).annotatedWith(Names.named("headerLength")).toInstance(48);
// 
//         bind(new TypeLiteral<Integer>() {
//         }).annotatedWith(Names.named("headerBodyLengthBeginIndex")).toInstance(4);
// 
//         bind(new TypeLiteral<Integer>() {
//         }).annotatedWith(Names.named("headerBodyLengthEndIndex")).toInstance(8);
//     }
// }


// Path: rsimulator-socket/src/test/java/com/github/bjuvensjo/rsimulator/socket/RequestReaderTest.java
import com.github.bjuvensjo.rsimulator.socket.config.SocketModule;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.google.inject.name.Named;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import static org.apache.commons.lang.StringUtils.leftPad;
import static org.apache.commons.lang.StringUtils.rightPad;
import static org.junit.jupiter.api.Assertions.assertEquals;

package com.github.bjuvensjo.rsimulator.socket;




public class RequestReaderTest {

    @Inject
    @Named("encoding")
    private String encoding;

    @Inject
    @Named("headerLength")
    private int headerLength;

    @Inject
    @Named("headerBodyLengthBeginIndex")
    private int headerBodyLengthBeginIndex;

    @Inject
    @Named("headerBodyLengthEndIndex")
    private int headerBodyLengthEndIndex;

    @Inject
    private RequestReader requestReader;

    @BeforeEach
    public void init() {
        Injector injector = Guice.createInjector(new SocketModule());