DependencyGraphTraceBuilderProperties { public DependencyGraphTraceBuilderProperties valuationTime(final Instant valuationTime) { return new DependencyGraphTraceBuilderProperties(this) { @Override public Instant getValuationTime() { return valuationTime; } }; } 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 valuationTime() { final DependencyGraphTraceBuilderProperties builder = createBuilder(); final Instant i1 = builder.getValuationTime(); Instant instant = ZonedDateTime.parse("2007-12-03T10:15:30+01:00[Europe/Paris]").toInstant(); final DependencyGraphTraceBuilderProperties prime = builder.valuationTime(instant); final Instant i2 = prime.getValuationTime(); assertEquals(i1, builder.getValuationTime()); assertFalse(Objects.equals(i1, i2)); }