public void testTwoRepositoriesSameTableSameId() throws Exception {
RepositoryModel repositoryModel = repoSetup.getRepositoryModel();
repositoryModel.create("company1");
repositoryModel.create("company2");
assertTrue(repositoryModel.waitUntilRepositoryInState("company1", RepositoryDefinition.RepositoryLifecycleState.ACTIVE, 60000L));
assertTrue(repositoryModel.waitUntilRepositoryInState("company2", RepositoryDefinition.RepositoryLifecycleState.ACTIVE, 60000L));
TypeManager typeMgr = repositoryManager.getDefaultRepository().getTypeManager();
FieldType fieldType1 = typeMgr.createFieldType("STRING", new QName("test", "field1"), Scope.NON_VERSIONED);
RecordType recordType1 = typeMgr.recordTypeBuilder()
.name(new QName("test", "rt1"))