@Test
public void testMultipleBeanSourceWithExcludeFilter() throws IllegalArgumentException {
FXForm fxForm = new FXForm();
Bean1 bean1 = new Bean1();
Bean2 bean2 = new Bean2();
fxForm.getFilters().add(new ExcludeFilter(bean1.getClass().getName() + "-property"));
fxForm.setSource(new MultipleBeanSource(bean1, bean2));
Assert.assertEquals(2, fxForm.getFilteredElements().size());
Assert.assertEquals(fxForm.getFilteredElements().get(0).getDeclaringClass(), Bean2.class);
Assert.assertEquals(fxForm.getFilteredElements().get(1).getDeclaringClass(), Bean2.class);
}