@Test
public void testSearchForBagDuplicates2() throws Exception {

    List input = Arrays.asList(new Object[] {"Mr."});
    BagQueryResult res = runner.searchForBag("Manager", input, null, true);
    Assert.assertEquals(0, res.getMatches().size());
    Map expected = new HashMap();
    Map queries = new HashMap();
    List ids = new ArrayList(Arrays.asList(new Object[] {eIds.get("EmployeeB1"), eIds.get("EmployeeB3")}));
    Map results = new HashMap();
    results.put("Mr.", ids);
    queries.put(BagQueryHelper.DEFAULT_MESSAGE, results);
    expected.put(BagQueryResult.DUPLICATE, queries);
    Assert.assertEquals(expected, res.getIssues());
    Assert.assertTrue(res.getUnresolved().isEmpty());
}