@Test
public void writeArray() throws IOException {

  byte[] b = new byte[] { 0, 1, 2 };
  int off = 0;
  int len = 2;
  underTest.write(b, off, len);
  verify(delegate).write(b, off, len);
  verify(consumer).accept(len);
}