DefaultStatus implements Status { public void created() { response.setStatus(HttpServletResponse.SC_CREATED); result.use(Results.nothing()); } DefaultStatus(HttpServletResponse response, Result result, Configuration config,
			Proxifier proxifier, Router router); void notFound(); void header(String key, String value); void created(); void created(String location); void ok(); void conflict(); void methodNotAllowed(EnumSet<HttpMethod> allowedMethods); void movedPermanentlyTo(String location); T movedPermanentlyTo(final Class<T> controller); void unsupportedMediaType(String message); void badRequest(String message); void badRequest(List<?> errors); void forbidden(String message); void noContent(); void notAcceptable(); void accepted(); void notModified();  }
@Test public void shouldSetCreatedStatus() throws Exception { status.created(); verify(response).setStatus(201); }
@Test public void shouldSetCreatedStatusAndLocationWithAppPath() throws Exception { when(config.getApplicationPath()).thenReturn("http: status.created("/newResource"); verify(response).setStatus(201); verify(response).addHeader("Location", "http: }