@Test
public void writeBytesDelegate() throws IOException {

    // given
    DataOutput dataOutput1 = mock(DataOutput.class);
    DataOutputAsStreamDelegate dataOutputDelegate = new DataOutputAsStreamDelegate(dataOutput1);
    // when
    byte[] bytes = {1};
    dataOutputDelegate.write(bytes);
    // then
    verify(dataOutput1).write(bytes);
}