@Test
public void execRequest() throws MalformedObjectNameException {

    JmxExecRequest req = new JmxRequestBuilder(EXEC,"test:type=blub")
            .operation("exec")
            .arguments("eins","zwei")
            .build();
    HistoryKey key = new HistoryKey(req);
    assertTrue(key.toString().contains("operation"));
    assertTrue(key.toString().contains("exec"));
    assertTrue(key.toString().contains("test:type=blub"));
    key = new HistoryKey("test:type=blub","exec","targetUrl");
    assertTrue(key.toString().contains("targetUrl"));
}