@Test(expected = IllegalStateException.class)
public void getAsMapAsyncTxIsIllegal() throws Exception {
Key key = ds.put(new Entity("Hoge")).get();
Key key2 = ds.put(new Entity("Hoge", key)).get();
Transaction tx = ds.beginTransaction().get();
tx.rollback();
DatastoreUtil.getAsMapAsync(ds, tx, Arrays.asList(key, key2));
}
/**
* @throws Exception