@Test
public void testAvailable() throws Exception {

    when(wrappedStream.available()).thenReturn(6);
    assertEquals(6, stream.available());
    //noinspection ResultOfMethodCallIgnored
    verify(wrappedStream, times(1)).available();
}