@Test
public void testGetMatchAndIssueIds() throws Exception {

    List<String> input = Arrays.asList("EmployeeA1", "Mr.", "gibbon");
    BagQueryResult res = runner.searchForBag("Manager", input, null, true);
    Assert.assertEquals(1, res.getMatches().size());
    Set<Integer> ids = new HashSet<Integer>(Arrays.asList(new Integer[] {
        eIds.get("EmployeeB1").getId(),
        eIds.get("EmployeeA1").getId(),
        eIds.get("EmployeeB3").getId()}));
    Assert.assertEquals(ids, res.getMatchAndIssueIds());
    Assert.assertEquals(1, res.getUnresolvedIdentifiers().size());
    Assert.assertEquals(Collections.singleton("gibbon"), res.getUnresolvedIdentifiers());
}