@Test
public void writeIntDelegates() throws IOException {

    // given
    OutputStream os1 = mock(OutputStream.class);
    OutputStreamDelegate outputStreamDelegate = new OutputStreamDelegate(os1);
    // when
    outputStreamDelegate.write(1);
    // then
    verify(os1).write(1);
}