Ensure endpoint definition Class is an interface.