public void testExtractExpectedFields()
throws
FormException, IllegalArgumentException {
Bean1 bean1 = new Bean1();
Bean2 bean2 = new Bean2();
ReflectionFieldProvider reflectionFieldProvider = new ReflectionFieldProvider();
List<String> include = new ArrayList<String>();
include.add(Bean1.class.getName() + "-property");
List<Field> fields = reflectionFieldProvider.getProperties(new MultipleBeanSource(bean1, bean2), include);
Assert.assertEquals(1, fields.size());
Assert.assertEquals(fields.get(0), ReflectionUtils.getFieldByName(Bean1.class, "property"));
}