@Test
public void testResolveManifestResources() throws Exception {

    final File mfFile = new File("src/test/resources/utiljar/META-INF/MANIFEST.MF");
    final URL mfUrl = mfFile.toURI().toURL();
    final Manifest manifest;
    final Logger logger = getLoggerFactory().getLogger(Util.class);
    final Level oldLevel = logger.getLevel();
    try (InputStream inputStream = mfUrl.openStream()) {
        manifest = new Manifest(inputStream);
        logger.setLevel(Level.DEBUG);
        List<String> goodRelPaths = Util.getManifestHeaderValues(manifest, "Good-RelPaths");
        assertEquals("should be same length for Good-RelPaths",
                goodRelPaths.size(), Util.resolveManifestResources(mfUrl, goodRelPaths).size());
        List<String> badRelPaths = Util.getManifestHeaderValues(manifest, "Bad-RelPaths");
        assertNotEquals("should be different length for Bad-RelPaths",
                badRelPaths.size(), Util.resolveManifestResources(mfUrl, badRelPaths).size());
    } finally {
        logger.setLevel(oldLevel);
    }
}