RowFacade implements Row { @Override public String getPath() throws RepositoryException { return delegate.getPath(); } @SuppressWarnings("WeakerAccess")  RowFacade(final @NotNull Row delegate, final @NotNull SessionFacade<S> session); @Override Value[] getValues(); @Override Value getValue(String columnName); @Override Node getNode(); @Override Node getNode(String selectorName); @Override String getPath(); @Override String getPath(String selectorName); @Override double getScore(); @Override double getScore(String selectorName);  }
@Test public void testGetPath() throws Exception { Row delegate = mock(Row.class); RowFacade<Session> facade = getFacade(delegate); final String value = "/correct/path"; when(delegate.getPath()).thenReturn(value); assertSame("same value", value, facade.getPath()); }
@Test public void testGetPathSelector() throws Exception { Row delegate = mock(Row.class); RowFacade<Session> facade = getFacade(delegate); final String value = "/correct/path"; final String arg1 = "arg1"; when(delegate.getPath(arg1)).thenReturn(value); assertSame("same value", value, facade.getPath(arg1)); }