@Test
public void writeRequest() throws MalformedObjectNameException {

    JmxWriteRequest req = new JmxRequestBuilder(WRITE,"test:type=blub")
            .attribute("bla")
            .build();
    HistoryKey key = new HistoryKey(req);
    assertTrue(key.toString().contains("attribute"));
    assertTrue(key.toString().contains("bla"));
    assertTrue(key.toString().contains("test:type=blub"));
}