*/
public class OpenerLauncherTest {
@Test
public void testReplaceValues() throws UnknownHostException {
FetcherRegistry fetcherRegistry = mock(FetcherRegistry.class);
when(fetcherRegistry.getSelectedFetchers()).thenReturn(Collections.<Fetcher>nCopies(5, null));
when(fetcherRegistry.getSelectedFetcherIndex(IPFetcher.ID)).thenReturn(0);
when(fetcherRegistry.getSelectedFetcherIndex(HostnameFetcher.ID)).thenReturn(1);
when(fetcherRegistry.getSelectedFetcherIndex(PingFetcher.ID)).thenReturn(2);
when(fetcherRegistry.getSelectedFetcherIndex("fetcher.comment")).thenReturn(3);
when(fetcherRegistry.getSelectedFetcherIndex("noSuchFetcher")).thenReturn(-1);
ScanningResultList scanningResults = new ScanningResultList(fetcherRegistry);
scanningResults.initNewScan(mockFeeder("info"));
ScanningResult result = scanningResults.createResult(InetAddress.getByName("127.0.0.1"));
result.setValue(0, new InetAddressHolder(InetAddress.getByName("127.0.0.1")));