}
@Test
public void testIfObjectsProcessedAndDelivered() {
Usage usage = datasift.usage().sync();
assertTrue(usage.isSuccessful());
// assertEquals(usage.getEnd().getMillis(), end.getMillis());
// assertEquals(usage.getStart().getMillis(), start.getMillis());
assertEquals(usage.getStreams().getSeconds(), streams.get("seconds"));
for (String key : usage.getStreams().getLicenses().keySet()) {
if (!streams.containsKey(key)) {
throw new AssertionError("The licenses map keys are not the same");
}
if (!streams.get(key).equals(usage.getStreams().getLicenses().get(key))) {
throw new AssertionError("The licenses map values are not the same");
}
}
}