anchor.diff:  
       @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN})
       @GET
  -    public FroMage get() {
  -        return new FroMage("Morbier");
  +    public Cheese get() {
  +        return new Cheese("Morbier");
       }
   
       @Consumes(MediaType.TEXT_PLAIN)
       @PUT
  -    public FroMage putString(String cheese) {
  -        return new FroMage(cheese);
  +    public Cheese putString(String cheese) {
  +        return new Cheese(cheese);
       }
   
       @Consumes(MediaType.APPLICATION_JSON)
       @PUT
  -    public FroMage putJson(FroMage fromage) {
  -        return fromage;
  +    public Cheese putJson(Cheese cheese) {
  +        return cheese;
       }
   }
   ----
  
positive.code:     }
      
      @GET
      public String findFromage(String fromage) {
          if(fromage == null)
              // send a 400
              throw new BadRequestException();
          return cheeses.findCheese(fromage);
      }
  } 
  ----
  
negative.code: import javax.ws.rs.NotFoundException;
  import javax.ws.rs.Path;
  
  @Path("cheeses/{cheese}")
  public class Endpoint {
  
      @GET
      public String findCheese(String cheese) {
          if(cheese == null)
              // send a 400
              throw new BadRequestException();
          if(!cheese.equals("camembert"))
              // send a 404
              throw new NotFoundException("Unknown cheese: " + cheese);
          return "Camembert is a very nice cheese";
      }
  }
  