@Test
public void versionRequest() {

    for (JmxVersionRequest req : new JmxVersionRequest[] {
            (JmxVersionRequest) JmxRequestFactory.createGetRequest("version/java.lang:type=Memory", procParams),
            (JmxVersionRequest) JmxRequestFactory.createPostRequest(
                    createMap("type", "version", "path", "java.lang:type=Memory"),procParams)
    }) {
        assertEquals(req.getType(),RequestType.VERSION);
        verify(req,"type","version");
    }
}