@Test
public void testAvailable() throws Exception {

    final byte[] input = new byte[] {'a', 'b', 'c'};
    final ByteArrayInputStream inputStream = new ByteArrayInputStream(input);
    final SessionInputBuffer inBuffer = new SessionInputBufferImpl(new BasicHttpTransportMetrics(), 16, 16, 1024, null);
    final IdentityInputStream in = new IdentityInputStream(inBuffer, inputStream);
    in.read();
    Assert.assertEquals(2, in.available());
    in.close();
}