///////////////////////////
@Test
public void testIsChildOf_NotAChild()
{
CloudStorePath a;
CloudStorePath b;
// a path is not a child of itself
a = new CloudStorePath("/foo/bar/");
b = new CloudStorePath("/foo/bar/");
assertFalse( a.isChildOf(b) );
assertFalse( b.isChildOf(a) );
// root directory not a child of itself
a = new CloudStorePath("/");
b = new CloudStorePath("/");
assertFalse( a.isChildOf(b) );
assertFalse( b.isChildOf(a) );
// two mutually exclusive directories
// are not children of eachother
a = new CloudStorePath("/bar/foo/");
b = new CloudStorePath("/foo/bar/");
assertFalse( a.isChildOf(b) );
assertFalse( b.isChildOf(a) );
a = new CloudStorePath("/foo/bar/biz");
b = new CloudStorePath("/foo/bar/");
assertFalse( b.isChildOf(a) );
// a parent path cannot be a file
a = new CloudStorePath("/foo/bar");
b = new CloudStorePath("/foo/biz/");
assertFalse( b.isChildOf(a) );
}