final ChannelIF cTemp = pm.createChannel("temp", getTestURL());
final ItemIF item1 = pm.createItem(cTemp, "wanted");
pm.createItem(cTemp, "unwanted");
// Check items in temp agains main channel.
ChannelRecord rec = new ChannelRecord(cMain, 0, 0);
worker.checkItems(cTemp, rec);
// Check results.
assertEquals(1, cMain.getItems().size());
assertEquals(item1, cMain.getItems().toArray()[0]);