function testThrows_StateFinalized() {
  // 107: Invalid transaction state transition: {0} -> {1}.
  return tx.begin([e]).then(function() {
    var whenDone = tx.commit();
    lf.testing.util.assertThrowsError(107, beginFn);
    lf.testing.util.assertThrowsError(107, attachFn);
    lf.testing.util.assertThrowsError(107, commitFn);
    lf.testing.util.assertThrowsError(107, rollbackFn);
    lf.testing.util.assertThrowsError(107, execFn);

    return whenDone;
  });
}
Tests that an lf.Exception.TRANSACTION is thrown when any operation is
attempted after transaction has been finalized.
@return {!IThenable}