@Test
public void attemptCreateSyncgroupWithinBatch() throws SyncbaseException,
        ExecutionException, InterruptedException {

    BatchDatabase batch = Syncbase.database().beginBatch(new Database.BatchOptions());
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("Cannot create syncgroup in a batch");
    batch.createCollection(new CollectionOptions());
}