### Question:
DbViewerTask extends AsyncTask<Void, Integer, Void> { @Override protected Void doInBackground(Void... params) { schemaList = getDbTableSchema(schemaCursor); contentList = getDbTableDetails(contentCursor); return null; } DbViewerTask(
      Cursor schemaCursor,
      Cursor contentCursor,
      WebView webView,
      DbViewerFragment dbViewerFragment);   }### Answer:
@Test public void testExecute() { SQLiteDatabase sqLiteDatabase = SQLiteDatabase.openDatabase( "src/test/resources/test.db", null, SQLiteDatabase.OPEN_READONLY); assertNotNull(sqLiteDatabase); DbViewerFragment mock = mock(DbViewerFragment.class); TextView loadingText = new TextView(ApplicationProvider.getApplicationContext()); mock.loadingText = loadingText; Cursor schemaCursor = sqLiteDatabase.rawQuery("PRAGMA table_info('users');", null); Cursor contentCursor = sqLiteDatabase.rawQuery("SELECT * FROM users", null); DbViewerTask task = new DbViewerTask(schemaCursor, contentCursor, webView, mock); task.doInBackground(); assertNotNull(task.schemaList); assertNotNull(task.contentList); assertEquals(3, task.schemaList.size()); assertEquals(4, task.contentList.size()); assertEquals("4 records loaded", loadingText.getText().toString()); sqLiteDatabase.close(); }