assertThat(created, is(bean));
}
@Test
public void testBuildMapWithBeanWithProtectedPropertiesAndRebuild_shouldBeEqualToOriginalBean() throws Exception {
BeanWithProtectedProperties bean =
new BeanWithProtectedProperties("foo", "bar");
Map<String, Object> map = BeanUtilsExtended.buildObjectAttributeMap(bean);
BeanWithProtectedProperties created =
BeanUtilsExtended.createBeanFromAttributeMap(BeanWithProtectedProperties.class, map);
assertThat(created.getPublicValue(), is("foo"));
assertThat(created, not(is(bean)));
}