@Test
public void testIdentifyEmbeddedPackage() {

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