Part 1: Tell Eclipse Not To Remove My Precious Static Imports
- Open Preferences (Window-> Preferences)
- Browse to Java -> Code Style -> Organize Imports
- Change 'Number of static imports needed for .* to '1'
- Click Ok
- Open Preferences (Window -> Preferences)
- Browse to Java -> Editor -> Content Assist -> Favorites
- Click 'New Type...'
- Enter org.mockito.Mockito
- Click Ok twice.