@Test
public void testIdentifyPackage() {

    graph.startedScan();
    assertNull("expect last identified is null", graph.getLastIdentified());
    assertFalse("expect not identified " + container2, graph.isIdentified(container2));
    graph.identifyPackage(container2, null);
    assertTrue("expect identified " + container2, graph.isIdentified(container2));
    assertEquals("expect container2 is last identified",
            container2, graph.getLastIdentified());
    assertFalse("expect not identified " + container1, graph.isIdentified(container1));
    graph.identifyPackage(container1, null);
    assertTrue("expect identified " + container1, graph.isIdentified(container1));
    assertEquals("expect container1 is last identified",
            container1, graph.getLastIdentified());
}