assertEquals(null, testResult);
}
//-------------------------------------------------------------------------
public void test_getRegion_ExternalIdBundle_found() throws Exception {
RegionMaster mock = mock(RegionMaster.class);
RegionSearchRequest request = new RegionSearchRequest(BUNDLE);
request.setPagingRequest(PagingRequest.ONE);
request.setVersionCorrection(VC);
RegionSearchResult result = new RegionSearchResult();
result.getDocuments().add(new RegionDocument(example()));
when(mock.search(request)).thenReturn(result);
MasterRegionSource test = new MasterRegionSource(mock, VC);
Region testResult = test.getHighestLevelRegion(BUNDLE);
verify(mock, times(1)).search(request);
assertEquals(example(), testResult);