@Test
public void testJavaDeriver() throws Exception {

    MavenPomArtifactBuilder builder = new MavenPomArtifactBuilder();
    ExtendedDocument artifact = new ExtendedDocument();
    artifact.setArtifactType(BaseArtifactEnum.EXTENDED_ARTIFACT_TYPE);
    artifact.setName("pom.xml");
    InputStream is = getClass().getResourceAsStream("pom.xml");
    // Derive
    @SuppressWarnings("unused")
llection<BaseArtifactType> derivedArtifacts = builder.buildArtifacts(artifact, new ArtifactContent("pom.xml", is))
      .getDerivedArtifacts();
    is.close();
    // Assert
    Assert.assertNotNull(artifact.getProperty());
    for (Property property : artifact.getProperty()) {
    	System.out.println(property.getPropertyName() + " - " + property.getPropertyValue());
    }
    System.out.println(artifact.getDescription());
}