robolectric

An alternative Android testing framework.