final DependencyNode n1 = new DependencyNode(t1.toSpecification());
n1.setFunction(new MockFunction("F1", t1));
n1.addOutputValue(new ValueSpecification("Foo", t1.toSpecification(), properties));
n1.addTerminalOutputValue(new ValueSpecification("Foo", t1.toSpecification(), properties));
graph.addDependencyNode(n1);
final ComputationTarget t2 = new ComputationTarget(ComputationTargetType.POSITION, new SimplePosition(UniqueId.of("Pos", "0"), BigDecimal.ONE, ExternalId.of("Security", "Foo")));
final DependencyNode n2 = new DependencyNode(t2.toSpecification());
n2.setFunction(new MockFunction("F2", t1));
n2.addOutputValue(new ValueSpecification("Foo", t2.toSpecification(), properties));
n1.addInputValue(new ValueSpecification("Foo", t2.toSpecification(), properties));
n1.addInputNode(n2);