assertThat(built, is(testBean));
}
@Test
public void testBuildMapWithComlexBeanAndRebuild_shouldBeEqualToOriginalBean() throws Exception {
BeanWithComplexAttributes bean =
new BeanWithComplexAttributes(new CustomStringClass("foo:bar"), new BigDecimal("1"));
Map<String, Object> map = BeanUtilsExtended.buildObjectAttributeMap(bean);
BeanWithComplexAttributes created =
BeanUtilsExtended.createBeanFromAttributeMap(BeanWithComplexAttributes.class, map);
assertThat(created, is(bean));
}