### Question:
NullEntity implements HttpEntity { @Override public InputStream getContent() throws IOException, UnsupportedOperationException { return EmptyInputStream.INSTANCE; } 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; }### Answer:
@Test public void testContentStream() throws IOException { try (InputStream content = NullEntity.INSTANCE.getContent()) { assertEquals(-1, content.read()); } try (InputStream content = NullEntity.INSTANCE.getContent()) { assertEquals(-1, content.read()); } }