private KernelTransaction NewKernelTransaction(long lastTransactionTimestampWhenStarted) { KernelTransaction txToTerminate = mock(typeof(KernelTransaction)); when(txToTerminate.LastTransactionTimestampWhenStarted()).thenReturn(lastTransactionTimestampWhenStarted); return(txToTerminate); }