### Question:
Ingest extends AbstractALSResource { @POST @Consumes({MediaType.TEXT_PLAIN, "text/csv", MediaType.APPLICATION_JSON}) public void post(Reader reader) throws IOException, OryxServingException { checkNotReadOnly(); doPost(maybeBuffer(reader)); }  @POST @Consumes({MediaType.TEXT_PLAIN, "text/csv", MediaType.APPLICATION_JSON}) void post(Reader reader); @POST @Consumes(MediaType.MULTIPART_FORM_DATA) void post(@Context HttpServletRequest request);  }### Answer:
@Test public void testSimpleIngest() { try (Response response = target("/ingest").request().post(Entity.text(INGEST_DATA))) { checkResponse(response); } }
@Test public void testGZippedIngest() { byte[] compressed = compress(INGEST_DATA, GZIPOutputStream.class); Entity<byte[]> entity = Entity.entity(compressed, compressedVariant("gzip")); try (Response response = target("/ingest").request().post(entity)) { checkResponse(response); } }
@Test public void testDeflateIngest() { byte[] compressed = compress(INGEST_DATA, DeflaterOutputStream.class); Entity<byte[]> entity = Entity.entity(compressed, compressedVariant("deflate")); try (Response response = target("/ingest").request().post(entity)) { checkResponse(response); } }