assertEquals("foo", record.getField(field2));
assertEquals("foo", table.read(record.getId()).getField(field2));
// Test we can get access to our test decorator: this is something that is occasionally useful
// in test cases to check certain conditions, e.g. if the decorator would have async side effects.
RepositoryDecoratorChain chain = repositoryMgr.getRepositoryDecoratorChain(repositoryName, tableName);
assertNotNull(chain);
assertNotNull(chain.getDecorator(TestRepositoryDecoratorFactory.NAME));
chains.put(chain.getDecorator(TestRepositoryDecoratorFactory.NAME), null);
assertEquals(2, chain.getEntries().size());
}
}
// There should be one instance of the decorator created for each repository-table combination (that
// was accessed)