@Test
public void testDelete() {

    insertInstalledApp("com.example.app1", 10, "1.0");
    insertInstalledApp("com.example.app2", 10, "1.0");
    assertResultCount(contentResolver, 2, InstalledAppProvider.getContentUri());
    contentResolver.delete(InstalledAppProvider.getAppUri("com.example.app1"), null, null);
    assertResultCount(contentResolver, 1, InstalledAppProvider.getContentUri());
    assertIsInstalledVersionInDb(contentResolver, "com.example.app2", 10, "1.0");
}