@Test
public void simplePostWithMergedMaps() {

    Map config = new HashMap();
    config.put("maxDepth","10");
    Map<String,Object> reqMap = createMap(
            "type","read",
            "mbean","java.lang:type=Memory",
            "attribute","HeapMemoryUsage",
            "config",config);
    Map param = new HashMap();;
    param.put("maxObjects","100");
    JmxReadRequest req = (JmxReadRequest) JmxRequestFactory.createPostRequest(reqMap,new Configuration().getProcessingParameters(param));
    assertEquals(req.getAttributeName(),"HeapMemoryUsage");
    assertEquals(req.getParameter(ConfigKey.MAX_DEPTH),"10");
    assertEquals(req.getParameterAsInt(ConfigKey.MAX_OBJECTS), 100);
}