RemoteDataStore extends DataManager { boolean deletePayloads() { boolean success = delete(TABLE_NAME, null, null) >= 0; if (!success) { Logger.error("RemoteDataStore - failed to delete payloads"); } return success; } RemoteDataStore(@NonNull Context context, @NonNull String appKey, @NonNull String dbName); boolean savePayloads(@NonNull Set<RemoteDataPayload> payloads); @NonNull Set<RemoteDataPayload> getPayloads();  }
@Test public void testDeletePayloads() { dataStore.savePayloads(payloads); dataStore.deletePayloads(); Assert.assertTrue(dataStore.getPayloads(Arrays.asList("type", "otherType")).size() == 0); }