ObjectName name = SimpleMBean.OBJECT_NAME;
assertInstall(name);
try
{
Simple test = getSimple();
assertEquals(stringValue, test.getAString());
assertEquals(byteValue, test.getAByte());
assertEquals(booleanValue, test.getABoolean());
// TODO character
// assertEquals(characterValue, test.getACharacter());
assertEquals(shortValue, test.getAShort());
assertEquals(integerValue, test.getAnInt());
assertEquals(longValue, test.getALong());
assertEquals(floatValue, test.getAFloat());
assertEquals(doubleValue, test.getADouble());
assertEquals(dateValue, test.getADate());
assertEquals(bigDecimalValue, test.getABigDecimal());
// TODO BigInteger
//assertEquals(bigIntegerValue, test.getABigInteger());
assertEquals(byteValue.byteValue(), test.getAbyte());
assertEquals(booleanValue.booleanValue(), test.isAboolean());
// TODO character
// assertEquals(characterValue.charValue(), test.getAchar());
assertEquals(shortValue.shortValue(), test.getAshort());
assertEquals(integerValue.intValue(), test.getAnint());
assertEquals(longValue.longValue(), test.getAlong());
assertEquals(floatValue.floatValue(), test.getAfloat());
assertEquals(doubleValue.doubleValue(), test.getAdouble());
}
finally
{
assertUninstall(name);
}