public class EarContributionProcessorTestCase {
private static final String EAR_CONTRIBUTION = "/ejb-injection-sample.ear";
@Test
public void testProcessPackageArtifacts() throws Exception {
EarContributionProcessor earProcessor = new EarContributionProcessor();
URL earURL = getClass().getResource(EAR_CONTRIBUTION);
InputStream earStream = earURL.openStream();
List<URI> artifacts = null;
try {
artifacts = earProcessor.getArtifacts(earURL, earStream);
} finally {
IOHelper.closeQuietly(earStream);
}
Assert.assertNotNull(artifacts);