Adding some code to check that the bound class implements all the methods or throws an exception