new Object[] {new Integer(20), new Integer(30)}, new String[] {"int", "int"});
assertEquals("Incorrect result", new Integer(50), result);
}
public void testAttributeHasCorrespondingOperations() throws Exception {
ModelMBeanInfo info = getMBeanInfoFromAssembler();
ModelMBeanOperationInfo myOperation = info.getOperation("myOperation");
assertNotNull("get operation should not be null", myOperation);
assertEquals("Incorrect myOperation return type", "long", myOperation.getReturnType());
ModelMBeanOperationInfo add = info.getOperation("add");
assertNotNull("set operation should not be null", add);
assertEquals("Incorrect add method description", "Add Two Numbers Together", add.getDescription());
}