@Test
public void testGetPathElements() {

  List<String> as2 = HMSPaths.getPathElements(new String("/a/b"));
  List<String> as1 = HMSPaths.getPathElements(new String("/a/b"));
  Assert.assertEquals(as1, as2);
  List<String> as = HMSPaths.getPathElements(new String("/a/b"));
  Assert.assertEquals(Lists.newArrayList("a", "b"), as);
  as = HMSPaths.getPathElements(new String("//a/b"));
  Assert.assertEquals(Lists.newArrayList("a", "b"), as);
  as = HMSPaths.getPathElements(new String("/a//b"));
  Assert.assertEquals(Lists.newArrayList("a", "b"), as);
  as = HMSPaths.getPathElements(new String("/a/b/"));
  Assert.assertEquals(Lists.newArrayList("a", "b"), as);
  as = HMSPaths.getPathElements(new String("//a//b//"));
  Assert.assertEquals(Lists.newArrayList("a", "b"), as);
}