ApplicationContext context = new GenericApplicationContext(factory);
ControllerEntityLinksFactoryBean builder = new ControllerEntityLinksFactoryBean();
builder.setAnnotation(Controller.class);
builder.setLinkBuilderFactory(new ControllerLinkBuilderFactory());
builder.setApplicationContext(context);
builder.afterPropertiesSet();
ControllerEntityLinks entityLinks = builder.getObject();
assertThat(entityLinks.supports(Person.class), is(true));