@Test
public void testValidateUriHeaderValues() {

    final Manifest manifest = new Manifest();
    manifest.getMainAttributes().put(NAME_CLASS_PATH, "../somedir");
    assertTrue(".. should fail",
            OpearFile.validateUriHeaderValues(manifest, NAME_CLASS_PATH).isFailure());
    manifest.getMainAttributes().put(NAME_CLASS_PATH, "/somedir");
    assertTrue("/ should succeed",
            OpearFile.validateUriHeaderValues(manifest, NAME_CLASS_PATH).isSuccess());
    manifest.getMainAttributes().put(NAME_CLASS_PATH, "/somedir/../..");
    assertTrue("/../.. should fail",
            OpearFile.validateUriHeaderValues(manifest, NAME_CLASS_PATH).isFailure());
}