@Test
public void shouldNotCrashOnNullBufferInput() throws IOException {

    byte[] bytes = ByteUtils.hexStringToByteArray("af66b1");
    ByteArrayInputStream stream = new ByteArrayInputStream(bytes);
    int read = StreamUtils.read(stream, null);
    Assert.assertEquals(-1, read);
}