}
@Test
public void testLocateExternalResourceName() {
final String HOST = "test.example.com";
Trace trace = createValidTrace(HOST);
List<ExternalResourceDescriptor> externalResourceDescriptors =
(List<ExternalResourceDescriptor>) analyzer.locateExternalResourceName(trace);
assertEquals("Mismatched number of descriptors", 1, externalResourceDescriptors.size());
ExternalResourceDescriptor descriptor = externalResourceDescriptors.get(0);
assertSame("Mismatched root frame", trace.getRootFrame(), descriptor.getFrame());
assertDescriptorContents("testLocateExternalResourceName", HOST, descriptor);
}