SwapSecurity swap = createSwap();
UniqueId uid = UniqueId.of("test", "123");
swap.setUniqueId(uid);
ExternalId externalId = ExternalId.of(UniqueId.EXTERNAL_SCHEME, "345");
swap.setExternalIdBundle(ExternalIdBundle.of(externalId));
swap.accept(visitor);
assertEquals(externalId, swap.getExternalIdBundle().getExternalId(UniqueId.EXTERNAL_SCHEME));
verify(securityMaster, never()).update(any(SecurityDocument.class));
}
@Test(expectedExceptions = IllegalStateException.class)