### Question:
SnappyCompressor { public byte[] compress(final byte[] uncompressed) { checkNotNull(uncompressed, "input data must not be null"); try { return Snappy.compress(uncompressed); } catch (final IOException e) { throw new FramingException("Snappy compression failed", e); } }  byte[] compress(final byte[] uncompressed); byte[] decompress(final byte[] compressed); int uncompressedLength(final byte[] compressed);  }### Answer:
@Test public void compressNull() { assertThatThrownBy(() -> snappy.compress(null)).isInstanceOf(NullPointerException.class); }