public void testPositionSpecificOverride() {
final DependencyGraphBuilder builder = createBuilder();
final ViewCalculationConfiguration config = builder.getCompilationContext().getViewCalculationConfiguration();
final PositionSource positions = builder.getCompilationContext().getPortfolioStructure().getPositionSource();
final Position position1 = getPosition(positions, "PositionAttr");
config.setDefaultProperties(ValueProperties.with("POSITION.Present Value.DEFAULT_ForwardCurve." + position1.getUniqueId(), "BarForward")
.with("POSITION.*.DEFAULT_FundingCurve." + position1.getUniqueId(), "BarFunding").with("POSITION.*.DEFAULT_ForwardCurve", "GenericForward")
.with("POSITION.Present Value.DEFAULT_FundingCurve", "GenericFunding").get());
final ValueRequirement req1 = createValueRequirement(ComputationTargetSpecification.of(position1), ValueProperties.none());
final ValueRequirement req2 = createValueRequirement(ComputationTargetSpecification.of(getPosition(positions, "Position")), ValueProperties.none());
builder.addTarget(req1);
builder.addTarget(req2);