- Extract utility functions into BaseTest so that there's a bunch of duplicated code everywhere
- Use long instead of Long in testPan to avoid object creation
- Extract a common BaseTest class to hold the duplicated setup/tearDown stuff
- Convert 2-space indent to 4-space indent in keeping with rest of android code
- Prefix class member variables with 'm'
- Convert tabs to spaces, remove trailing whitespace
- Remove unused imports
- Use generics to reduce unchecked warnings