### Question:
PageCompareDataLineImpl implements PageCompareDataLine { @Override public String getUniqueName() { return path.replace("/jcr:content", "").replace("/","").replace(":","-"); } PageCompareDataLineImpl(Property property, String basePath, int depth);   PageCompareDataLineImpl(Resource resource, String basePath, int depth); @Override boolean equals(Object obj); @Override int hashCode(); @Override String getPath(); @Override String getUniqueName(); @Override String getName(); @Override String getValueString(); @Override String getValueStringShort(); @Override int getDepth();  }### Answer:
@Test public void getUniqueName() throws Exception { Property property = mockProperty("myValue", "/base/path/relative/path/jcr:content", "propertyName"); PageCompareDataLineImpl underTest = new PageCompareDataLineImpl(property, "/base/path", 1); assertThat(underTest.getUniqueName(), is("relativepath")); }