Stub method that returns the content immediately.
Stub method that returns the content immediately. Useful for unit testing.
val stubParser = bodyParser(AnyContent("hello"))
the content to return, AnyContentAsEmpty by default
a BodyParser for type T that returns Accumulator.done(Right(content))