Bug 166600 [DataBinding] Refactor tests to be in the correct packages
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/beans/JavaBeanObservableListTest.java
observableList.addListChangeListener(new ListChangeListener());
		assertTrue(bean.changeSupport.hasListeners(propertyName));
	}
    
    public void testRemovesListenerAfterLastListenerIsRemoved() throws Exception {
    	ListChangeListener listener = new ListChangeListener();
		observableList.addListChangeListener(listener);
		
		assertTrue(bean.changeSupport.hasListeners(propertyName));
		observableList.removeListChangeListener(listener);
		assertFalse(bean.changeSupport.hasListeners(propertyName));
	}
    
    public void testFiresListChangeEvents() throws Exception {
    	ListChangeListener listener = new ListChangeListener();
    	observableList.addListChangeListener(listener);
    	
    	assertEquals(0, listener.count);
    	bean.setList(Arrays.asList(new String[] {"value"}));
    	assertEquals(1, listener.count);
	}
    
    static class ListChangeListener implements IListChangeListener {
    	int count;
		public void handleListChange(ListChangeEvent event) {
			count++;
		}
    }
}