title: Why RobolectricGradleTestRunner on Android is producing exception for more than two test cases?
body: <p>I have been worked with the <code>Framework Robolectric</code> with <code>Android</code> and <code>Gradle</code>. I did some unit testing using appropriate build variants (Unit Tests) approach.</p>
  
  <p>However, I am unable to get success status for my test <code>MyAppConfigurationActivityTest</code> that includes two 
  individual test cases <code>testMyAppConfigurationActivity_NotNull</code> and <code>testMyAppConfigurationActivity_GetListNotNull</code>.</p>
  
  <p>When I ran my <code>MyAppConfigurationActivityTest</code> I get the exception depicted below:</p>
  
  <pre><code>java.lang.RuntimeException: java.lang.IllegalStateException: Illegal connection pointer 216. Current pointers for thread Thread[pool-4-thread-1,5,main] []
  at org.robolectric.shadows.ShadowSQLiteConnection$Connections.execute(ShadowSQLiteConnection.java:470)
  at org.robolectric.shadows.ShadowSQLiteConnection.nativeResetStatementAndClearBindings(ShadowSQLiteConnection.java:286)
  at android.database.sqlite.SQLiteConnection.nativeResetStatementAndClearBindings(SQLiteConnection.java)
  at android.database.sqlite.SQLiteConnection.releasePreparedStatement(SQLiteConnection.java:915)
  at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:519)
  at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
  at android.database.sqlite.SQLiteProgram.__constructor__(SQLiteProgram.java:58)
  at android.database.sqlite.SQLiteProgram.&lt;init&gt;(SQLiteProgram.java)
  at android.database.sqlite.SQLiteQuery.&lt;init&gt;(SQLiteQuery.java)
  at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
  at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1316)
  at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1255)
  at com.j256.ormlite.android.AndroidDatabaseConnection.queryForOne(AndroidDatabaseConnection.java:190)
  at com.j256.ormlite.stmt.mapped.MappedQueryForId.execute(MappedQueryForId.java:38)
  at com.j256.ormlite.stmt.StatementExecutor.queryForId(StatementExecutor.java:85)
  at com.j256.ormlite.dao.BaseDaoImpl.queryForId(BaseDaoImpl.java:223)
  at com.j256.ormlite.dao.RuntimeExceptionDao.queryForId(RuntimeExceptionDao.java:84)
  at com.sample.android.ui.MyAppConfigurationActivity.onCreate(MyAppConfigurationActivity.java:105)
  at android.app.Activity.performCreate(Activity.java:5933)
  at org.robolectric.util.ReflectionHelpers.callInstanceMethod(ReflectionHelpers.java:195)
  at org.robolectric.util.ActivityController$1.run(ActivityController.java:122)
  at org.robolectric.shadows.ShadowLooper.runPaused(ShadowLooper.java:304)
  at org.robolectric.shadows.CoreShadowsAdapter$2.runPaused(CoreShadowsAdapter.java:45)
  at org.robolectric.util.ActivityController.create(ActivityController.java:118)
  at org.robolectric.util.ActivityController.create(ActivityController.java:129)
  at com.sample.android.ui.tests.activity.MyAppConfigurationActivityTest.testMyAppConfigurationActivity_NotNull
  </code></pre>
  
  <p>The strange point is that exception is being launched only when I ran the class
  <code>MyAppConfigurationActivityTest</code>. </p>
  
  <p>In another hand, when I ran individually each test case <code>testMyAppConfigurationActivity_NotNull</code> or 
  <code>testMyAppConfigurationActivity_GetListNotNull</code> none exception is launched.</p>
  
  <p>Any idea about this ?</p>
  
  <p>I really appreciate any help about this question.</p>