InstanceService instanceService = EasyMock.createMock(InstanceService.class);
EasyMock.expect(instanceService.getInstances()).andReturn(new Instance[]{i1, i2});
EasyMock.replay(instanceService);
Instances instanceServiceMBean = new Instances(instanceService);
TabularData tabularData = instanceServiceMBean.getInstances();
Assert.assertEquals(2, tabularData.size());
CompositeData cd1 = tabularData.get(new Object[]{"i1"});
Assert.assertTrue(cd1.containsValue("i1"));
Assert.assertTrue(cd1.containsValue(true));
Assert.assertTrue(cd1.containsValue(1234));