assertEquals("Test", testResult.iterator().next().getName());
}
//-------------------------------------------------------------------------
public void test_getSecurity_ExternalId() throws Exception {
SecurityMaster mock = mock(SecurityMaster.class);
SecuritySearchRequest request = new SecuritySearchRequest();
request.addExternalId(ID1);
request.addExternalId(ID2);
request.setVersionCorrection(VC);
ManageableSecurity security = example();
SecuritySearchResult result = new SecuritySearchResult();
result.getDocuments().add(new SecurityDocument(security));
when(mock.search(request)).thenReturn(result);
MasterSecuritySource test = new MasterSecuritySource(mock, VC);
Security testResult = test.getSingle(BUNDLE);
verify(mock, times(1)).search(request);
assertEquals(UID, testResult.getUniqueId());