@Test
public void writeBytesWithOffsetDelegates() throws IOException {

    // given
    OutputStream os1 = mock(OutputStream.class);
    OutputStreamDelegate outputStreamDelegate = new OutputStreamDelegate(os1);
    // when
    byte[] bytes = {1};
    outputStreamDelegate.write(bytes, 2, bytes.length);
    // then
    verify(os1).write(bytes, 2, bytes.length);
}