@SuppressWarnings("unchecked")
@Test
public void testBuildMapFromMultiValueBean_shouldContainAllValues() throws Exception {

    BeanWithMultiValues testBean = new BeanWithMultiValues(42, 2.0, 3.1415, 1.4142135);
    Map<String, Object> map = BeanUtilsExtended.buildObjectAttributeMap(testBean);
    assertThat((Long) map.get("id"), is(42L));
    assertThat((List<Double>) map.get("numbers"), is(Arrays.asList(2.0, 3.1415, 1.4142135)));
}