assertTrue(validation.isSuccessful());
}
@Test
public void testIfUserCanCreateSubscription() {
PushSubscription create = datasift.push().create(s3, stream, name).sync();
assertTrue(create.isSuccessful());
assertEquals(create.getId(), id);
assertEquals(create.getOutputType().value(), output_type);
assertEquals(create.name(), name);
assertEquals(create.getCreatedAt(), created_at);
assertEquals(create.getUserId(), user_id);
assertEquals(create.hash(), hash);
assertEquals(create.getHashType(), hash_type);
assertEquals(create.getLastRequest(), last_request);
assertEquals(create.getLastSuccess(), last_success);
assertEquals(create.getRemainingBytes(), remaining_bytes);
assertEquals(create.isLostData(), lost_data);
assertEquals(create.getStart(), start);
assertEquals(create.getEnd(), end);
}