BigInteger bigIntegerValue = new BigInteger("123456");
Kernel kernel = bootstrap();
KernelConfigurator configurator = kernel.getConfigurator();
BeanInfo info = configurator.getBeanInfo(SimpleBean.class);
SimpleBean bean = (SimpleBean) instantiate(configurator, info);
AbstractBeanMetaData metaData = new AbstractBeanMetaData();
HashSet attributes = new HashSet();
attributes.add(new AbstractPropertyMetaData("aString", stringValue));
attributes.add(new AbstractPropertyMetaData("aByte", byteValue));
attributes.add(new AbstractPropertyMetaData("aBoolean", booleanValue));
attributes.add(new AbstractPropertyMetaData("aCharacter", characterValue));
attributes.add(new AbstractPropertyMetaData("aShort", shortValue));
attributes.add(new AbstractPropertyMetaData("anInt", integerValue));
attributes.add(new AbstractPropertyMetaData("aLong", longValue));
attributes.add(new AbstractPropertyMetaData("aFloat", floatValue));
attributes.add(new AbstractPropertyMetaData("aDouble", doubleValue));
attributes.add(new AbstractPropertyMetaData("aDate", dateValue));
attributes.add(new AbstractPropertyMetaData("aBigDecimal", bigDecimalValue));
attributes.add(new AbstractPropertyMetaData("aBigInteger", bigIntegerValue));
attributes.add(new AbstractPropertyMetaData("abyte", byteValue));
attributes.add(new AbstractPropertyMetaData("aboolean", booleanValue));
attributes.add(new AbstractPropertyMetaData("achar", characterValue));
attributes.add(new AbstractPropertyMetaData("ashort", shortValue));
attributes.add(new AbstractPropertyMetaData("anint", integerValue));
attributes.add(new AbstractPropertyMetaData("along", longValue));
attributes.add(new AbstractPropertyMetaData("afloat", floatValue));
attributes.add(new AbstractPropertyMetaData("adouble", doubleValue));
attributes.add(new AbstractPropertyMetaData("aNumber", longValue));
attributes.add(new AbstractPropertyMetaData("overloadedProperty", stringValue));
metaData.setProperties(attributes);
configure(configurator, bean, info, metaData);
assertEquals(stringValue, bean.getAString());
assertEquals(byteValue, bean.getAByte());
assertEquals(booleanValue, bean.getABoolean());
assertEquals(characterValue, bean.getACharacter());
assertEquals(shortValue, bean.getAShort());
assertEquals(integerValue, bean.getAnInt());
assertEquals(longValue, bean.getALong());
assertEquals(floatValue, bean.getAFloat());
assertEquals(doubleValue, bean.getADouble());
assertEquals(dateValue, bean.getADate());
assertEquals(bigDecimalValue, bean.getABigDecimal());
assertEquals(bigIntegerValue, bean.getABigInteger());
assertEquals(byteValue.byteValue(), bean.getAbyte());
assertEquals(booleanValue.booleanValue(), bean.isAboolean());
assertEquals(characterValue.charValue(), bean.getAchar());
assertEquals(shortValue.shortValue(), bean.getAshort());
assertEquals(integerValue.intValue(), bean.getAnint());
assertEquals(longValue.longValue(), bean.getAlong());
assertEquals(floatValue.floatValue(), bean.getAfloat());
assertEquals(doubleValue.doubleValue(), bean.getAdouble());
Number number = bean.getANumber();
assertEquals(Long.class, number.getClass());
assertEquals(longValue, number);
assertEquals(stringValue, bean.getOverloadedProperty());
}