public class FgNodeMergerTest {
@Test
public void simple() {
SimpleGraph graph = new SimpleGraph();
Node nanmedNode = new NamedNodeImpl("http://1.example.org/");
graph.add(new TripleImpl(new NodeImpl(),
new InverseFunctionalPropertyNodeImpl(
"http://example.org/functional"), nanmedNode));
Node fg2 = new NodeImpl();
graph.add(new TripleImpl(fg2, new InverseFunctionalPropertyNodeImpl(
"http://example.org/functional"), nanmedNode));
graph.add(new TripleImpl(fg2, new InverseFunctionalPropertyNodeImpl(
"http://example.org/f2"), new NamedNodeImpl(
"http://2.example.org/")));