@Test
public void testFlush() throws Exception {

  OutputStream outputStream = mock( OutputStream.class );
  stream.setParent( outputStream );
  stream.flush();
  verify( outputStream, times( 1 ) ).flush();
}