@Test(expectedExceptions = { IllegalArgumentException.class })

public void multiPostRequestsWithWrongArg() {
    Map<String,Object> reqMap = createMap(
            "type", "list");
    JmxRequestFactory.createPostRequests(Arrays.asList(reqMap, "Wrong"),procParams);
}