@Test
public void readRequestNullArguments() {

    for (JmxReadRequest req : new JmxReadRequest[] {
            (JmxReadRequest) JmxRequestFactory.createGetRequest("read/java.lang:type=Memory", procParams),
            (JmxReadRequest) JmxRequestFactory.createPostRequest(
                    createMap("type", "read", "mbean", "java.lang:type=Memory"),procParams)
    }) {
        assertFalse(req.isMultiAttributeMode());
        assertFalse(req.hasAttribute());
        assertNull(req.getAttributeName());
        for (List list : new List[] { (List) req.toJSON().get("attribute"), req.getAttributeNames() }) {
            assertNull(list);
        }
    }
}