@Test
public void mixesInExtensionAwareInterface() throws Exception {
Class<? extends Bean> generatedClass = generator.generate(Bean.class);
assertTrue(ExtensionAware.class.isAssignableFrom(generatedClass));
Bean bean = generatedClass.newInstance();
ExtensionAware dynamicBean = (ExtensionAware) bean;
assertThat(dynamicBean.getExtensions(), notNullValue());
}