### Question:
DataObjectPropertyReader extends BasePropertyReader { public String getName() { return CustomElement.name.of(element).get(); } DataObjectPropertyReader(DataObjectReference ref, BPMNDiagram diagram,
                                    BPMNShape shape,
                                    double resolutionFactor); String getName(); String getType();  }### Answer:
@Test public void getExtendedName() { String name = tested.getName(); assertEquals("custom", name); }
@Test public void getName() { when(dataObject.getExtensionValues()).thenReturn(Collections.emptyList()); String name = tested.getName(); assertEquals("name", name); }