### Question:
AsnSequenceOfSequenceCodec extends AsnObjectCodecBase<L> { @Override public void encode(final L values) { Objects.requireNonNull(values); this.codecs = new ArrayList<>(CODECS_ARRAY_INITIAL_CAPACITY); for (T value : values) { AsnSequenceCodec<T> codec = subCodecSupplier.get(); codec.encode(value); this.codecs.add(codec); } } AsnSequenceOfSequenceCodec(
      final Supplier<L> listConstructor, final Supplier<AsnSequenceCodec<T>> subCodecSupplier
  ); int size(); AsnSequenceCodec<T> getCodecAt(final int index); @Override L decode(); @Override void encode(final L values);  }### Answer:
@Test public void testEncodeWithNullCodecsList() { expectedException.expect(NullPointerException.class); codec.encode(null); }