//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void before() public virtual void Before() { ThreadToStatementContextBridge bridge = mock(typeof(ThreadToStatementContextBridge)); Statement statement = mock(typeof(Statement)); when(bridge.Get()).thenReturn(statement); _kernelTransaction = spy(typeof(KernelTransaction)); _locks = mock(typeof(Locks)); when(_kernelTransaction.locks()).thenReturn(_locks); _placeboTx = new PlaceboTransaction(_kernelTransaction); _resource = mock(typeof(Node)); when(_resource.Id).thenReturn(1L); }