### Question:
RegisteredBeanDefinition { public String getName() { return this.name; } RegisteredBeanDefinition(BeanDefinition beanDefinition, String name); BeanDefinition getBeanDefinition(); String getName(); RuntimeBeanReference asReference();  }### Answer:
@Test public void shouldGetName() throws Exception { assertThat(this.registeredBeanDefinition.getName(), is(this.name)); }