Program: 32283
Project: 32283
Buggy source:
/** 
 * This is a unit test for the following methods :   {@link com.smartdevicelink.streaming.AbstractPacketizer#AbstractPacketizer(IStreamListener,InputStream,SessionType,byte)}{@link com.smartdevicelink.streaming.AbstractPacketizer#AbstractPacketizer(IStreamListener,InputStream,RPCRequest,SessionType,byte,byte)}
 */
public void testConstructors(){
  byte testSessionId=(byte)0x0A;
  byte testWiproVersion=(byte)0x0B;
  RPCRequest testRpcRequest=new RPCRequest("String_Node_Str");
  SessionType testSessionType=SessionType.RPC;
  SdlSession testSdlSession=null;
  InputStream testInputStream=null;
  MockPacketizer testPacketizer1=null;
  MockPacketizer testPacketizer2=null;
  MockPacketizer testPacketizer3=null;
  IStreamListener testListener=new MockStreamListener();
  try {
    URL url=new URL("String_Node_Str");
    URLConnection urlConnection=url.openConnection();
    testInputStream=new BufferedInputStream(urlConnection.getInputStream());
    MockInterfaceBroker _interfaceBroker=new MockInterfaceBroker();
    BaseTransportConfig _transportConfig=new BTTransportConfig(true);
    testSdlSession=SdlSession.createSession(testWiproVersion,_interfaceBroker,_transportConfig);
    testPacketizer1=new MockPacketizer(testListener,testInputStream,testSessionType,testSessionId,testSdlSession);
    testPacketizer2=new MockPacketizer(null,null,null,testSessionId,testSdlSession);
    testPacketizer3=new MockPacketizer(testListener,testInputStream,testRpcRequest,testSessionType,testSessionId,testWiproVersion,testSdlSession);
    try {
      new MockPacketizer(null,null,null,null,testSessionId,testWiproVersion,null);
      fail("String_Node_Str");
    }
 catch (    Exception e) {
      assertTrue(e instanceof IllegalArgumentException);
    }
    assertNotNull(Test.NOT_NULL,testPacketizer1);
    assertNotNull(Test.NOT_NULL,testPacketizer2);
    assertNotNull(Test.NOT_NULL,testPacketizer3);
    assertEquals(Test.MATCH,testListener,testPacketizer1.getListener());
    assertEquals(Test.MATCH,testInputStream,testPacketizer1.getInputStream());
    assertEquals(Test.MATCH,testSessionType,testPacketizer1.getSessionType());
    assertEquals(Test.MATCH,testSessionId,testPacketizer1.getSessionId());
    assertEquals(Test.MATCH,testListener,testPacketizer3.getListener());
    assertEquals(Test.MATCH,testInputStream,testPacketizer3.getInputStream());
    assertEquals(Test.MATCH,testSessionType,testPacketizer3.getSessionType());
    assertEquals(Test.MATCH,testSessionId,testPacketizer3.getSessionId());
    assertEquals(Test.MATCH,testWiproVersion,testPacketizer3.getWiproVersion());
    assertEquals(Test.MATCH,testRpcRequest.getFunctionName(),testPacketizer3.getRPCRequest().getFunctionName());
    assertEquals(Test.MATCH,testSdlSession,testPacketizer3.getSdlSession());
    assertNull(Test.NULL,testPacketizer2.getListener());
    assertNull(Test.NULL,testPacketizer2.getInputStream());
    assertNull(Test.NULL,testPacketizer2.getSessionType());
  }
 catch (  IOException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * This is a unit test for the following methods :   {@link com.smartdevicelink.streaming.AbstractPacketizer#AbstractPacketizer(IStreamListener,InputStream,SessionType,byte)}{@link com.smartdevicelink.streaming.AbstractPacketizer#AbstractPacketizer(IStreamListener,InputStream,RPCRequest,SessionType,byte,byte)}
 */
public void testConstructors(){
  byte testSessionId=(byte)0x0A;
  byte testWiproVersion=(byte)0x0B;
  RPCRequest testRpcRequest=new RPCRequest("String_Node_Str");
  SessionType testSessionType=SessionType.RPC;
  SdlSession testSdlSession=null;
  InputStream testInputStream=null;
  MockPacketizer testPacketizer1=null;
  MockPacketizer testPacketizer2=null;
  MockPacketizer testPacketizer3=null;
  IStreamListener testListener=new MockStreamListener();
  try {
    testInputStream=new BufferedInputStream(new ByteArrayInputStream("String_Node_Str".getBytes()));
    MockInterfaceBroker _interfaceBroker=new MockInterfaceBroker();
    BaseTransportConfig _transportConfig=new BTTransportConfig(true);
    testSdlSession=SdlSession.createSession(testWiproVersion,_interfaceBroker,_transportConfig);
    testPacketizer1=new MockPacketizer(testListener,testInputStream,testSessionType,testSessionId,testSdlSession);
    testPacketizer2=new MockPacketizer(null,null,null,testSessionId,testSdlSession);
    testPacketizer3=new MockPacketizer(testListener,testInputStream,testRpcRequest,testSessionType,testSessionId,testWiproVersion,testSdlSession);
    try {
      new MockPacketizer(null,null,null,null,testSessionId,testWiproVersion,null);
      fail("String_Node_Str");
    }
 catch (    Exception e) {
      assertTrue(e instanceof IllegalArgumentException);
    }
    assertNotNull(Test.NOT_NULL,testPacketizer1);
    assertNotNull(Test.NOT_NULL,testPacketizer2);
    assertNotNull(Test.NOT_NULL,testPacketizer3);
    assertEquals(Test.MATCH,testListener,testPacketizer1.getListener());
    assertEquals(Test.MATCH,testInputStream,testPacketizer1.getInputStream());
    assertEquals(Test.MATCH,testSessionType,testPacketizer1.getSessionType());
    assertEquals(Test.MATCH,testSessionId,testPacketizer1.getSessionId());
    assertEquals(Test.MATCH,testListener,testPacketizer3.getListener());
    assertEquals(Test.MATCH,testInputStream,testPacketizer3.getInputStream());
    assertEquals(Test.MATCH,testSessionType,testPacketizer3.getSessionType());
    assertEquals(Test.MATCH,testSessionId,testPacketizer3.getSessionId());
    assertEquals(Test.MATCH,testWiproVersion,testPacketizer3.getWiproVersion());
    assertEquals(Test.MATCH,testRpcRequest.getFunctionName(),testPacketizer3.getRPCRequest().getFunctionName());
    assertEquals(Test.MATCH,testSdlSession,testPacketizer3.getSdlSession());
    assertNull(Test.NULL,testPacketizer2.getListener());
    assertNull(Test.NULL,testPacketizer2.getInputStream());
    assertNull(Test.NULL,testPacketizer2.getSessionType());
  }
 catch (  IOException e) {
    e.printStackTrace();
    fail("String_Node_Str");
  }
}