Mockito.verify(logger).log(new ComputationTargetRequirement(ComputationTargetType.SECURITY, ExternalId.of("Foo", "Bar")), UniqueId.of("Foo", "Bar", "Cow"));
Mockito.verifyNoMoreInteractions(logger);
}
public void getSecurity_objectId() {
final Trade trade = Mockito.mock(Trade.class);
final ResolutionLogger logger = Mockito.mock(ResolutionLogger.class);
final Trade logged = new LoggedResolutionTrade(trade, logger);
final Security security = Mockito.mock(Security.class);
Mockito.when(security.getUniqueId()).thenReturn(UniqueId.of("Foo", "Bar", "Cow"));
Mockito.when(trade.getSecurity()).thenReturn(security);
Mockito.when(trade.getSecurityLink()).thenReturn(new SimpleSecurityLink(ObjectId.of("Foo", "Bar")));
assertSame(logged.getSecurity(), security);
Mockito.verify(logger).log(new ComputationTargetSpecification(ComputationTargetType.SECURITY, UniqueId.of("Foo", "Bar")), UniqueId.of("Foo", "Bar", "Cow"));
Mockito.verifyNoMoreInteractions(logger);
}