@Test
@Category(Slow.class)
public void testAnalyze() {

  try {
    final WarAnalyzer wa = new WarAnalyzer();
    wa.analyze(new File("./src/test/resources/examples.war"));
    wa.setWorkDir(Paths.get("./target"));
    wa.setRename(true);
    WarAnalyzer.setAppContext(new Application("dummy-group", "dummy-artifact", "0.0.1-SNAPSHOT"));
    wa.call();
    // 15 archives in WEB-INF/lib
    final Set<FileAnalyzer> fas = wa.getChilds(true);
    assertEquals(15, fas.size());
    // 15 constructs in classes in WEB-INF/classes
    final Set<ConstructId> cids = wa.getConstructIds();
    assertEquals(15, cids.size());
  } catch (Exception e) {
    e.printStackTrace();
    assertTrue(false);
  }
}