	@Test
	public final void testCreatePacketPayloadNotIncludingFrameType() {

		// Setup the resources for the test.
		int frameID = 0xE7;
		XBee64BitAddress dest64Addr = new XBee64BitAddress("0013A2004032D9AB");
		XBee16BitAddress dest16Addr = new XBee16BitAddress("B45C");
		int options = 0x06;
		String cmd = "BD";
		byte[] data = new byte[]{0x00, 0x6F, 0x6C, 0x61};
		
		byte[] payload = new byte[14 + data.length];
		payload[0] = (byte)frameID;
		System.arraycopy(dest64Addr.getValue(), 0, payload, 1, dest64Addr.getValue().length);
		System.arraycopy(dest16Addr.getValue(), 0, payload, 9, dest16Addr.getValue().length);
		payload[11] = (byte)options;
		System.arraycopy(cmd.getBytes(), 0, payload, 12, cmd.getBytes().length);
		System.arraycopy(data, 0, payload, 14, data.length);
		
		exception.expect(IllegalArgumentException.class);
		exception.expectMessage(is(equalTo("Payload is not a Remote AT Command packet.")));
		
		// Call the method under test that should throw an IllegalArgumentException.
		RemoteATCommandPacket.createPacket(payload);
	}