Problem in unitary tests on Samsung Android V4.1.2
After searching :
In TestContextMock :
Removing the condition "if (context == null)" in the setMockContext() method (l. 87) seems to resolve the problem.
Same Problem in Android V2.3.6 !!!