@@ -0,0 +1,1068 @@
+package org.purl.wf4ever.robundle.fs;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.nio.file.Path;%0A%0Aimport org.junit.Test;%0Aimport org.purl.wf4ever.robundle.Bundle;%0Aimport org.purl.wf4ever.robundle.Bundles;%0A%0Apublic class TestBundlePaths %7B%0A%09@Test%0A%09public void endsWith() throws Exception %7B%0A%09%09Bundle bundle = Bundles.createBundle();%0A%09%09bundle.getRoot();%0A%09%09Path fred = bundle.getRoot();%0A%09%09Path barBazAbs = fred.resolve(%22bar/baz%22);%0A%09%09System.out.println(barBazAbs);%0A%09%09Path barBaz = fred.relativize(barBazAbs);%0A%09%09assertEquals(%22bar/baz%22, barBaz.toString());%0A%09%09assertTrue(barBaz.endsWith(%22bar/baz%22));%0A%09%09assertFalse(barBaz.endsWith(%22bar/../bar/baz%22));%0A%09%09Path climber = barBaz.resolve(%22../baz%22);%0A%09%09assertEquals(%22bar/baz/../baz%22, climber.toString());%0A%09%09assertTrue(climber.endsWith(%22../baz%22));%0A%09%09assertFalse(climber.endsWith(%22bar/baz%22));%0A%09%09Path climberNorm = climber.normalize();%0A%09%09assertFalse(climberNorm.endsWith(%22../baz%22));%0A%09%09assertTrue(climberNorm.endsWith(%22bar/baz%22));%0A%09%09%0A%09%7D%0A%7D%0A

test BundlePath (at least endsWith)