### Question:
PersistenceUnitPropertyGrid implements IsWidget,
                   PersistenceUnitPropertyGridView.Presenter { @Override public void onRemoveProperty( PropertyRow propertyRow ) { if ( properties != null ) { properties.remove( propertyRow ); } setProperties( properties ); } PersistenceUnitPropertyGrid(); @Inject  PersistenceUnitPropertyGrid( PersistenceUnitPropertyGridView view ); @Override Widget asWidget(); void setProperties( List<PropertyRow> properties ); List<PropertyRow> getProperties(); @Override void onAddProperty(); @Override void onRemoveProperty( PropertyRow propertyRow ); void setReadOnly( boolean readOnly ); void redraw();  }### Answer:
@Test public void testOnRemoveProperty() { List<PropertyRow> properties = new ArrayList<PropertyRow>( ); properties.add( propertyRow1 ); properties.add( propertyRow2 ); properties.add( propertyRow3 ); presenter.setProperties( properties ); presenter.onRemoveProperty( propertyRow1 ); assertEquals( 2, presenter.getProperties().size() ); assertEquals( 2, dataProvider.getList().size() ); assertFalse( presenter.getProperties().contains( propertyRow1 ) ); assertFalse( dataProvider.getList().contains( propertyRow1 ) ); }