//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void testPathNodes() internal virtual void TestPathNodes() { when(_spi.newNodeProxy(Mockito.anyLong())).thenAnswer(new NodeProxyAnswer(this)); Path path = (new PathImpl.Builder(CreateNodeProxy(1))).push(CreateRelationshipProxy(1, 2)).push(CreateRelationshipProxy(2, 3)).build(new PathImpl.Builder(CreateNodeProxy(3))); IEnumerable <Node> nodes = path.Nodes(); IList <Node> nodeList = Iterables.asList(nodes); assertEquals(3, nodeList.Count); assertEquals(1, nodeList[0].Id); assertEquals(2, nodeList[1].Id); assertEquals(3, nodeList[2].Id); }