@Test
public void testGetIndex() throws Exception {

    Node delegate = mock(Node.class);
    NodeFacade<Node, Session> facade = getFacade(delegate);
    final int value = 42;
    when(delegate.getIndex()).thenReturn(value);
    assertEquals("same value", value, facade.getIndex());
}