Testing Java in an Object-Oriented Way