@BeforeMethod
public void setUp() throws Exception {
_delegate1 = mock(MarketDataSnapshot.class);
_delegate2 = mock(MarketDataSnapshot.class);
_snapshot = new CompositeMarketDataSnapshot(Lists.newArrayList(_delegate1, _delegate2), new SnapshottingViewExecutionDataProvider.ValueSpecificationProvider(2));
stub(_delegate1.query(SPECIFICATION1)).toReturn(VALUE1);
stub(_delegate2.query(SPECIFICATION2)).toReturn(VALUE2);
stub(_delegate1.query(Sets.newHashSet(SPECIFICATION1))).toReturn(ImmutableMap.of(SPECIFICATION1, VALUE1));
stub(_delegate2.query(Sets.newHashSet(SPECIFICATION2))).toReturn(ImmutableMap.of(SPECIFICATION2, VALUE2));
stub(_delegate1.getSnapshotTime()).toReturn(null);