@Test
public void testChecksum() throws PacketParsingException{

	Ethernet packet = new Ethernet();
	
	IPv4 ip = new IPv4();
	ip.deserialize(fea8, 0, fea8.length);
	TCP payload = (TCP)ip.getPayload();
	payload.resetChecksum();
	payload.serialize();
	
	assertTrue(payload.getChecksum() == (short)0xfea8);
	
	
	packet.deserialize(checksumTestPacket1, 0, checksumTestPacket1.length);
	payload = (TCP)packet.getPayload().getPayload();
	payload.resetChecksum();
	payload.serialize();
	
	assertTrue(payload.getChecksum() == (short)0xff03);
	
	packet = new Ethernet();
	packet.deserialize(checksumTestPacket2, 0, checksumTestPacket2.length);
	payload = (TCP)packet.getPayload().getPayload();
	payload.resetChecksum();
	payload.serialize();
	
	assertTrue(payload.getChecksum() == (short)0xff09);
	
	
}