@Test
public void createsObjectNameWithNameAsKeyPropertyName() {

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