There is safe harbor in many jurisdictions to use a patented invention for research.