@Test
public void readWithPattern() {

    JmxReadRequest req = JmxRequestFactory.createGetRequest("read/java.lang:type=*",procParams);
    assert req.getType() == RequestType.READ : "Type is read";
    assert req.getObjectName().getCanonicalName().equals("java.lang:type=*") : "Name properly parsed";
    assert req.getObjectName().isPattern() : "Name is pattern";
    assert req.getAttributeNames() == null : "No attributes names";
    assert req.getAttributeName() == null : "No attributes names";
    assert req.getPath() == null : "Path is null";
    req = JmxRequestFactory.createGetRequest("read/java.lang:type=*/HeapMemoryUsage",procParams);
    assert req.getAttributeName().equals("HeapMemoryUsage") : "No attributes names";
}