*/
public void testInvokeWithLongArrayReturn() throws Exception
{
MBeanServer server = MBeanServerFactory.newMBeanServer();
ObjectName name = new ObjectName(":test=test");
server.registerMBean(new Test(), name);
Long[] array = (Long[])server.invoke(name, "opWithLongArrayReturn", null, null);
assertTrue(array [0].longValue() == 1);
assertTrue(array [1].longValue() == 2);