Testing using Android Testing framework with device or emulator is difficult. Building and running test is slow and take much development effort. To fix this problem, there's another choice - Roboelectric testing framework.
Roboelectric framework allows you to run Android tests directly on JVM without the need for a device or an emulator