### Question:
TransitionalTxManagementKernelTransaction { void reopenAfterPeriodicCommit() { tx = startTransaction(); } TransitionalTxManagementKernelTransaction( GraphDatabaseFacade db, KernelTransaction.Type type,
            LoginContext loginContext, long customTransactionTimeout, ThreadToStatementContextBridge bridge ); void terminate(); void rollback(); void commit();  }### Answer:
@Test public void reopenStartTransactionWithCustomTimeoutIfSpecified() { TransitionalTxManagementKernelTransaction managementKernelTransaction = new TransitionalTxManagementKernelTransaction( databaseFacade, type, loginContext, 10, contextBridge ); managementKernelTransaction.reopenAfterPeriodicCommit(); verify( databaseFacade, times( 2 ) ).beginTransaction( type, loginContext, 10, TimeUnit.MILLISECONDS); }
@Test public void reopenStartDefaultTransactionIfTimeoutNotSpecified() { TransitionalTxManagementKernelTransaction managementKernelTransaction = new TransitionalTxManagementKernelTransaction( databaseFacade, type, loginContext, -1, contextBridge ); managementKernelTransaction.reopenAfterPeriodicCommit(); verify( databaseFacade, times( 2 ) ).beginTransaction( type, loginContext ); }