DependencyGraphTraceBuilderProperties { public DependencyGraphTraceBuilderProperties requirements(final Collection<ValueRequirement> requirements) { return new DependencyGraphTraceBuilderProperties(this) { @Override public Collection<ValueRequirement> getRequirements() { return requirements; } }; } DependencyGraphTraceBuilderProperties(); private  DependencyGraphTraceBuilderProperties(DependencyGraphTraceBuilderProperties other); String getCalculationConfigurationName(); Instant getValuationTime(); VersionCorrection getResolutionTime(); ValueProperties getDefaultProperties(); Collection<ValueRequirement> getRequirements(); List<MarketDataSpecification> getMarketData(); DependencyGraphTraceBuilderProperties calculationConfigurationName(final String calculationConfigurationName); DependencyGraphTraceBuilderProperties resolutionTime(final VersionCorrection resolutionTime); DependencyGraphTraceBuilderProperties valuationTime(final Instant valuationTime); DependencyGraphTraceBuilderProperties defaultProperties(final ValueProperties defaultProperties); DependencyGraphTraceBuilderProperties addRequirement(ValueRequirement requirement); DependencyGraphTraceBuilderProperties requirements(final Collection<ValueRequirement> requirements); DependencyGraphTraceBuilderProperties marketData(final List<MarketDataSpecification> marketData); DependencyGraphTraceBuilderProperties addMarketData(MarketDataSpecification marketData); @Override String toString();  }
@Test public void requirements() { Set<ValueRequirement> requirements = Collections.singleton(new ValueRequirement("testValue", new ComputationTargetRequirement(ComputationTargetType.POSITION, ExternalId.of("GOLDMAN", "FOO1")))); final DependencyGraphTraceBuilderProperties builder1 = createBuilder(); Collection<ValueRequirement> defaultRequirements = builder1.getRequirements(); final DependencyGraphTraceBuilderProperties builder2 = builder1.requirements(requirements); assertEquals(defaultRequirements, builder1.getRequirements()); assertEquals(requirements, builder2.getRequirements()); }