DependencyGraphTraceBuilderProperties { public DependencyGraphTraceBuilderProperties resolutionTime(final VersionCorrection resolutionTime) { return new DependencyGraphTraceBuilderProperties(this) { @Override public VersionCorrection getResolutionTime() { return resolutionTime; } }; } 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 resolutionTime() { String rtStr = "V1970-01-01T00:00:01Z.CLATEST"; VersionCorrection rt = VersionCorrection.parse(rtStr); final DependencyGraphTraceBuilderProperties builder1 = createBuilder(); VersionCorrection defaultVC = builder1.getResolutionTime(); final DependencyGraphTraceBuilderProperties builder2 = builder1.resolutionTime(rt); assertEquals(defaultVC, builder1.getResolutionTime()); assertEquals(rt, builder2.getResolutionTime()); }