The API Checker library allows checking a rest servlet against a contract written in WADL. The library is meant to be used within a servlet filter, see wadltest cli utility for an example of how the libarary may be used.