return new MarketDataProviderResolver() {
@Override
public MarketDataProvider resolve(UserPrincipal marketDataUser, MarketDataSpecification snapshotSpec) {
MarketDataProvider mock = mock(MarketDataProvider.class);
when(mock.snapshot(any(MarketDataSpecification.class))).thenReturn(mock(CompositeMarketDataSnapshot.class));
return mock;
}
};
}
}