params[1] = new Parameter<Short>(Parameter.TYPE_SHORT, 1, (short) 0x1234);
params[2] = new Parameter<Integer>(Parameter.TYPE_INT, 2, (int) 0x12345678);
params[3] = new Parameter<Float>(Parameter.TYPE_FLOAT, 3, 1234.5678F);
params[4] = new Parameter<String>(Parameter.TYPE_STRING, 4, "test");
params[5] = new Parameter<Item>(Parameter.TYPE_ITEM, 5, new Item(1, 64, 0));
params[6] = new Parameter<Coordinate>(Parameter.TYPE_COORDINATE, 6, new Coordinate(10, 11, 12));
ChannelBuffer buffer = ChannelBuffers.buffer(46);
ChannelBufferUtils.writeParameters(buffer, params);
assertEquals(0x00, buffer.readUnsignedByte());