Unit testing of annotated classes