@Test(expectedExceptionsMessageRegExp = ".*Invalid object name.*",expectedExceptions = {IllegalArgumentException.class})

public void invalidObjectName() {
    JmxRequestFactory.createGetRequest("read/bla::blub",procParams);
}