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