RemoteDataStore extends DataManager { @NonNull public Set<RemoteDataPayload> getPayloads() { return getPayloads(null); } RemoteDataStore(@NonNull Context context, @NonNull String appKey, @NonNull String dbName); boolean savePayloads(@NonNull Set<RemoteDataPayload> payloads); @NonNull Set<RemoteDataPayload> getPayloads();  }
@Test public void testGetPayloads() { dataStore.savePayloads(payloads); Set<RemoteDataPayload> savedPayloads = dataStore.getPayloads(Arrays.asList("type", "otherType")); Assert.assertNotNull(savedPayloads); Assert.assertEquals(payloads, savedPayloads); savedPayloads = dataStore.getPayloads(Arrays.asList("type")); Assert.assertEquals(1, savedPayloads.size()); Assert.assertEquals("type", savedPayloads.iterator().next().getType()); }