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