@POST @Produces(MediaType.APPLICATION_JSON) @Path("/data") public void postData(@Context UriInfo uriInfo,@Suspended AsyncResponse asyncResponse){
  StringBuilder b=new StringBuilder();
  for (int i=0; i < 65536; i++) {
    b.append((char)('A' + i % 26));
  }
  asyncResponse.resume(b.toString());
}

@ POST @ Produces ( MediaType . APPLICATION_JSON ) @ Path ( "/data" ) public void postData ( @ Context UriInfo uriInfo , @ Suspended AsyncResponse asyncResponse ) { StringBuilder b = new StringBuilder ( ) ; for ( int i = 0 ; i < 65536 ; i ++ ) { b . append ( ( char ) ( 'A' + i % 26 ) ) ; } asyncResponse . resume ( b . toString ( ) ) ; }
mock for the data endpoint .
