RowFacade implements Row { @Override public Value getValue(String columnName) throws RepositoryException { return delegate.getValue(columnName); } @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 testGetValue() throws Exception { Row delegate = mock(Row.class); RowFacade<Session> facade = getFacade(delegate); final Value value = mock(Value.class); final String arg1 = "arg1"; when(delegate.getValue(arg1)).thenReturn(value); assertSame("same value", value, facade.getValue(arg1)); }