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