assertThat(attributeMap.get("value2"), is("bar"));
}
@Test
public void testBuildAttributeMapAndBuildNewBean_shouldBeEqualToOriginalBean() throws Exception {
SimpleBeanWithStrings testBean = new SimpleBeanWithStrings("foo", "bar");
Map<String, String> attributeMap = BeanUtilsExtended.buildStringAttributeMap(testBean);
SimpleBeanWithStrings bean2 =
BeanUtilsExtended.createBeanFromAttributeMap(SimpleBeanWithStrings.class, attributeMap);
assertThat(bean2, is(testBean));
}