@Test
public void simpleGetWithPath() {

    JmxWriteRequest req = JmxRequestFactory.createGetRequest("write/java.lang:type=Runtime/SystemProperties/7788/[com.sun.management.jmxremote.port]/value", procParams);
    assert req.getType() == RequestType.WRITE : "Type is write";
    assert req.getObjectName().getCanonicalName().equals("java.lang:type=Runtime") : "Name properly parsed";
    List<String> parts = req.getPathParts();
    assert parts.get(0).equals("[com.sun.management.jmxremote.port]") : "Path part 0:" + parts.get(0);
    assert parts.get(1).equals("value") : "Path part 1: " + parts.get(1) ;
    assert req.getPath().equals("[com.sun.management.jmxremote.port]/value");
}