Examples are tests. Integration tests can be enough, I assure you.