try {
Instant now = Instant.now();
ObjectId baseOid = setupTestData(now);
_exgMaster.setClock(Clock.fixed(now.plus(2, HOURS), ZoneOffset.UTC));
ExchangeDocument latestDoc = _exgMaster.get(baseOid, VersionCorrection.LATEST);
Instant latestFrom = latestDoc.getVersionFromInstant();
final ExternalIdBundle bundle = ExternalIdBundle.of("B", "B0");
final ExternalIdBundle region = ExternalIdBundle.of("R", "R0");
List<ExchangeDocument> replacement = newArrayList();
for (int i = 0; i <= 10; i++) {
ManageableExchange ex = new ManageableExchange(bundle, "test" + i, region, null);
ExchangeDocument doc = new ExchangeDocument(ex);
doc.setVersionFromInstant(latestFrom.plus(i - 3, MINUTES));
replacement.add(doc);
}
_exgMaster.replaceVersions(latestDoc, replacement);