### Question:
PropertyElementDescriptors { public ElementDescriptor getDescriptor(Object pmo) { ElementDescriptor descriptor = findDescriptor(pmo); descriptor.addAspectDefinitions(additionalAspects); return descriptor; } PropertyElementDescriptors(String pmoPropertyName); int getPosition(); String getPmoPropertyName(); ElementDescriptor getDescriptor(Object pmo); void addAspect(List<LinkkiAspectDefinition> aspectDefs); boolean isNotEmpty(); List<LinkkiAspectDefinition> getAllAspects();  }### Answer:
@Test public void testGetDescriptor_WithoutDescriptor_NoComponentTypeMethod() { PropertyElementDescriptors descriptors = new PropertyElementDescriptors(TestPmo.SINGLE_PMO_PROPERTY); Assertions.assertThrows(IllegalStateException.class, () -> { descriptors.getDescriptor(new TestPmo()); }); }
@Test public void testGetDescriptor_WithoutDescriptor_WithComponentTypeMethod() { PropertyElementDescriptors descriptors = new PropertyElementDescriptors(TestPmo.DUAL_PMO_PROPERTY); Assertions.assertThrows(IllegalStateException.class, () -> { descriptors.getDescriptor(new TestPmo()); }); }