final MarketDataSnapshotMaster master = new InMemorySnapshotMaster();
final MarketDataSnapshotSource source = new MasterSnapshotSource(master);
final ComponentInfo infoMaster = new ComponentInfo(MarketDataSnapshotMaster.class, "test");
repo.registerComponent(infoMaster, master);
repo.getRestComponents().publish(infoMaster, new DataMarketDataSnapshotMasterResource(master));
final ComponentInfo infoSource = new ComponentInfo(MarketDataSnapshotSource.class, "test");
repo.registerComponent(infoSource, source);
repo.getRestComponents().publish(infoSource, new DataMarketDataSnapshotSourceResource(source));
}