@Test
public void testUnknownLengthConstructor() throws Exception {

    final InputStreamEntity entity = new InputStreamEntity(EmptyInputStream.INSTANCE, null);
    Assert.assertEquals(-1, entity.getContentLength());
}