@Test
public void simpleRead() throws MalformedObjectNameException, InstanceNotFoundException, IOException, ReflectionException, AttributeNotFoundException, MBeanException {
Configuration config = new Configuration(ConfigKey.DEBUG,"true",ConfigKey.AGENT_ID,"test");
BackendManager backendManager = new BackendManager(config, log);
JmxRequest req = new JmxRequestBuilder(RequestType.READ,"java.lang:type=Memory")
.attribute("HeapMemoryUsage")
.build();
JSONObject ret = backendManager.handleRequest(req);
assertTrue((Long) ((Map) ret.get("value")).get("used") > 0);
backendManager.destroy();