@Test
public void testPipe_CopyZeroBytes() throws IOException {

  int dataLength = 0;
  ByteArrayInputStream in = new ByteArrayInputStream(new byte[dataLength]);
  ByteArrayOutputStream out = new ByteArrayOutputStream();
  BsPatch.pipe(in, out, new byte[100], dataLength);
  int actualLength = out.toByteArray().length;
  Assert.assertEquals(0, actualLength);
}