@Test
public void testMiscOps() throws Exception {
AsyncDatastoreService service = DatastoreServiceFactory.getAsyncDatastoreService();
DatastoreAttributes attributes = waitOnFuture(service.getDatastoreAttributes());
Assert.assertNotNull(attributes);
Assert.assertNotNull(attributes.getDatastoreType());
Map<Index, Index.IndexState> indexes = waitOnFuture(service.getIndexes());
Assert.assertNotNull(indexes);
Transaction tx = waitOnFuture(service.beginTransaction());
try {
String txId = tx.getId();
Assert.assertNotNull(txId);
Assert.assertEquals(txId, tx.getId());
String appId = tx.getApp();
Assert.assertNotNull(appId);
Assert.assertEquals(appId, tx.getApp());
} finally {
tx.rollback();
}
}