EasyMock.expect(instance.getLocation()).andReturn("somewhere");
EasyMock.expect(instance.getJavaOpts()).andReturn("someopts");
EasyMock.replay(instance);
TabularData td = InstanceToTableMapper.tableFrom(Collections.singletonList(instance));
Collection<?> keys = (Collection<?>) td.keySet().iterator().next();
Assert.assertEquals("MyInstance", keys.iterator().next());
CompositeData cd = td.get(keys.toArray());
Assert.assertEquals(1712, cd.get("Pid"));
Assert.assertEquals("MyInstance", cd.get("Name"));