FramedElement { protected void setProperty(String name, Object value) { if (value == null) { element.removeProperty(name); } else { if (value instanceof Enum) { element.setProperty(name, value.toString()); } else { element.setProperty(name, value); } } }  @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testSetProperty() { p1.setProperty("name", "Bryn Cooke"); Assert.assertEquals("Bryn Cooke", p1.getProperty("name")); }