### Question:
ListDeserializer { public static <E extends DataObject> List<E> deserializeList(short version, int length, ByteBuf input, CodeKeyMaker keyMaker, DeserializerRegistry registry) { List<E> items = null; if (input.readableBytes() > 0) { items = new ArrayList<>(); int startIndex = input.readerIndex(); while ((input.readerIndex() - startIndex) < length){ OFDeserializer<E> deserializer = registry.getDeserializer(keyMaker.make(input)); E item = deserializer.deserialize(input); items.add(item); } } return items; } private  ListDeserializer(); static List<E> deserializeList(short version, int length,
            ByteBuf input, CodeKeyMaker keyMaker, DeserializerRegistry registry); static List<E> deserializeHeaders(short version, int length,
            ByteBuf input, CodeKeyMaker keyMaker, DeserializerRegistry registry);  }### Answer:
@Test public void test() { ByteBuf buffer = PooledByteBufAllocator.DEFAULT.buffer(); List<DataObject> list = ListDeserializer.deserializeList(EncodeConstants.OF13_VERSION_ID, 42, buffer, keyMaker, registry); Assert.assertNull("List is not null", list); }