public void test_add_add() {
Instant now = Instant.now(_cfgMaster.getClock());
ConfigItem<ExternalId> item = ConfigItem.of(ExternalId.of("A", "B"));
item.setName("TestConfig");
ConfigDocument test = _cfgMaster.add(new ConfigDocument(item));
UniqueId uniqueId = test.getUniqueId();
assertNotNull(uniqueId);
assertEquals("DbCfg", uniqueId.getScheme());
assertTrue(uniqueId.isVersioned());
assertTrue(Long.parseLong(uniqueId.getValue()) >= 1000);
assertEquals("0", uniqueId.getVersion());
assertEquals(now, test.getVersionFromInstant());
assertEquals(null, test.getVersionToInstant());
assertEquals(now, test.getCorrectionFromInstant());
assertEquals(null, test.getCorrectionToInstant());
assertEquals(ExternalId.of("A", "B"), test.getConfig().getValue());
assertEquals("TestConfig", test.getName());
}