@Test
  public void shouldBeAbleToClearProperties() throws Exception {
    PersistenceUnitDef def = create().property(name, name2).property(name2, name);

    List<Property> props = def.getProperties();
    assertEquals(2, props.size());

    def.clearProperties();

    props = def.getProperties();
    assertEquals(0, props.size());
  }
  @Test
  public void shouldBeAbleToRemovePropertyByName() throws Exception {
    PersistenceUnitDef def = create().property(name, name2).property(name2, name);

    List<Property> props = def.getProperties();
    assertEquals(2, props.size());

    def.removeProperty(name);
    props = def.getProperties();
    assertEquals(1, props.size());
    assertEquals(name2, props.get(0).getName());
    assertEquals(name, props.get(0).getValue());
  }