@Override
  protected Void doInBackground(Void... params) {
    schemaList = getDbTableSchema(schemaCursor);
    contentList = getDbTableDetails(contentCursor);
    return null;
  }
@Test
  public void testExecute() {
    SQLiteDatabase sqLiteDatabase =
        SQLiteDatabase.openDatabase(
            "src/test/resources/test.db", null, SQLiteDatabase.OPEN_READONLY);
    assertNotNull(sqLiteDatabase);

    DbViewerFragment mock = mock(DbViewerFragment.class);
    AppCompatTextView loadingText =
        new AppCompatTextView(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();

    shadowOf(getMainLooper()).idle();

    assertNotNull(task.schemaList);
    assertNotNull(task.contentList);

    // 3 columns
    assertEquals(3, task.schemaList.size());
    // 4 records
    assertEquals(4, task.contentList.size());
    assertEquals("4 records loaded", loadingText.getText().toString());

    sqLiteDatabase.close();
  }