@Test
public void createsObjectNameWithDomainInInput() {

	DefaultObjectNameFactory f = new DefaultObjectNameFactory();
	ObjectName on = f.createName("type", "com.domain", MetricName.build("something.with.dots"));
	Assertions.assertThat(on.getDomain()).isEqualTo("com.domain");
}