Element implements ElementId { @JsonIgnore public Element getElement() { return this; } Element();   Element(final String group);   Element(final String group, final Properties properties); void putProperty(final String name, final Object value); void copyProperties(final Properties properties); Object getProperty(final String name); @JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.WRAPPER_OBJECT, property = "class") Properties getProperties(); Object removeProperty(final String propName); String getGroup(); @Override int hashCode(); boolean shallowEquals(final Object obj); boolean shallowEquals(final Element element); @Override boolean equals(final Object obj); @Override String toString(); @JsonIgnore abstract Element emptyClone(); Element shallowClone(); @JsonIgnore abstract Object getIdentifier(final IdentifierType identifierType); @JsonIgnore Element getElement(); static final String DEFAULT_GROUP; }
@Test public void shouldReturnItselfForGetElement() { final Element element = newElement("group"); final Element result = element.getElement(); assertSame(element, result); }