@Test
public void simpleDispatchWithUser() throws InstanceNotFoundException, IOException, ReflectionException, AttributeNotFoundException, MBeanException, NotChangedException {

    System.setProperty("TEST_WITH_USER","roland");
    try {
        JmxRequest req = preparePostReadRequest("roland");
        Map result = (Map) dispatcher.dispatchRequest(req);
        assertTrue(result.containsKey("HeapMemoryUsage"));
    } finally {
        System.clearProperty("TEST_WITH_USER");
    }
}