### Question:
PartiallyRepeatableHttpEntity extends HttpEntityWrapper { @Override public boolean isRepeatable() { return finalStream == null; } PartiallyRepeatableHttpEntity(final HttpEntity entity, int bufferSize);  PartiallyRepeatableHttpEntity(final HttpEntity entity); @Override boolean isRepeatable(); @Override boolean isStreaming(); @Override boolean isChunked(); @Override long getContentLength(); @Override InputStream getContent(); @Override void writeTo( final OutputStream stream ); @Override @SuppressWarnings( "deprecation" ) void consumeContent(); static final int DEFAULT_BUFFER_SIZE; }### Answer:
@Test public void testIsRepeatable() throws Exception { String text = "0123456789"; BasicHttpEntity basic; PartiallyRepeatableHttpEntity replay; basic = new BasicHttpEntity(); basic.setContent( new ByteArrayInputStream( text.getBytes( StandardCharsets.UTF_8 ) ) ); replay = new PartiallyRepeatableHttpEntity( basic ); assertThat( replay.isRepeatable(), is( true ) ); basic = new BasicHttpEntity(); basic.setContent( new ByteArrayInputStream( text.getBytes( StandardCharsets.UTF_8 ) ) ); BufferedHttpEntity buffered = new BufferedHttpEntity( basic ); replay = new PartiallyRepeatableHttpEntity( buffered ); assertThat( replay.isRepeatable(), is( true ) ); }