@Test
public void testGetPropertyId() {

  Assert.assertEquals("foo", PropertyHelper.getPropertyId("", "foo"));
  Assert.assertEquals("foo", PropertyHelper.getPropertyId(null, "foo"));
  Assert.assertEquals("foo", PropertyHelper.getPropertyId(null, "foo/"));
  Assert.assertEquals("cat", PropertyHelper.getPropertyId("cat", ""));
  Assert.assertEquals("cat", PropertyHelper.getPropertyId("cat", null));
  Assert.assertEquals("cat", PropertyHelper.getPropertyId("cat/", null));
  Assert.assertEquals("cat/foo", PropertyHelper.getPropertyId("cat", "foo"));
  Assert.assertEquals("cat/sub/foo", PropertyHelper.getPropertyId("cat/sub", "foo"));
  Assert.assertEquals("cat/sub/foo", PropertyHelper.getPropertyId("cat/sub", "foo/"));
}