public void test_ReplaceVersion_noUid() {
Clock origClock = _cfgMaster.getClock();
try {
Instant now = Instant.now();
ObjectId baseOid = setupTestData(now);
_cfgMaster.setClock(Clock.fixed(now.plus(2, HOURS), ZoneOffset.UTC));
List<ConfigDocument> replacement = newArrayList();
for (int i = 0; i <= 2; i++) {
String val = "replace_" + i;
ConfigDocument doc = new ConfigDocument(ConfigItem.of(val));
doc.setVersionFromInstant(now.plus(1, MINUTES).plus(i * 20, SECONDS));
replacement.add(doc);
}
_cfgMaster.replaceVersion(baseOid.atVersion("no such uid"), replacement);
} finally {
_cfgMaster.setClock(origClock);
}
}