NullEntity implements HttpEntity { @Override public boolean isChunked() { return false; } private  NullEntity(); @Override boolean isRepeatable(); @Override InputStream getContent(); @Override void writeTo(final OutputStream outStream); @Override boolean isStreaming(); @Override Supplier<List<? extends Header>> getTrailers(); @Override void close(); @Override long getContentLength(); @Override String getContentType(); @Override String getContentEncoding(); @Override boolean isChunked(); @Override Set<String> getTrailerNames(); static final NullEntity INSTANCE; }
@Test public void testIsChunked() { assertFalse(NullEntity.INSTANCE.isChunked()); }