There are framework classes that are helpful for specific test cases:
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.