@Test
public void shouldCreateAnObjectName() throws Exception {

    final String domain = "domain";
    final String key = "key";
    final String value = "value";
    final ObjectName objectName = objectNameFactory.create(domain, key, value);
    assertThat(objectName.getDomain(), is(domain));
    assertThat(objectName.getCanonicalName(), is("domain:key=value"));
}