### Question:
SugarDb extends SQLiteOpenHelper { @Override public synchronized SQLiteDatabase getReadableDatabase() { if(ManifestHelper.isDebugEnabled()) { Log.d(LOG_TAG, "getReadableDatabase"); } openedConnections++; return super.getReadableDatabase(); } private  SugarDb(); static SugarDb getInstance(); @Override void onCreate(SQLiteDatabase sqLiteDatabase); @Override void onConfigure(SQLiteDatabase db); @Override void onUpgrade(SQLiteDatabase sqLiteDatabase, int oldVersion, int newVersion); synchronized SQLiteDatabase getDB(); @Override synchronized SQLiteDatabase getReadableDatabase(); @Override synchronized void close();  }### Answer:
@Test public void testGetReadableDatabase() { final SQLiteDatabase db = sugarDb.getReadableDatabase(); assertEquals(false, db.isReadOnly()); }