import com.google.common.base.Throwables;
import com.google.common.collect.Maps;
+
+import java.util.HashMap;
import java.util.Map;
import javax.management.ObjectName;
import junit.framework.Assert;
fail(test + " should have failed on " + ex);
}
+
+ @Test(expected = IllegalArgumentException.class)
+ public void testCreateON() throws Exception {
+ ObjectNameUtil.createON(">}+!#");
+ }
+
+ @Test(expected = IllegalArgumentException.class)
+ public void testCreateON2() throws Exception {
+ Map<String, String> map = new HashMap<>();
+ ObjectNameUtil.createON(">}+!#", map);
+ }
}