Results { public static Result contentType(String contentType) { Result result = status(Result.SC_200_OK); result.contentType(contentType); return result; }  static Result status(int statusCode); static Result ok(); static Result created(Optional<String> url); static Result notFound(); static Result forbidden(); static Result unauthorized(); static Result badRequest(); static Result noContent(); static Result internalServerError(); static Result redirect(String url); static Result redirectTemporary(String url); static Result contentType(String contentType); static Result html(); static Result text(); static Result json(); static Result jsonp(); static Result xml(); static Result TODO(); static Result webSocketContinue(); static AsyncResult async();  }
@Test public void testResultsContentType() { Result result = Results.contentType("text/my-cool-content-type"); assertEquals(Result.SC_200_OK, result.getStatusCode()); assertEquals("text/my-cool-content-type", result.getContentType()); }