Unit test to enforce design principles