JSONObject config = new JSONObject("{" + ContainerConfig.DEFAULT_CONTAINER + ":" +
"{'gadgets.features':{'opensocial-0.8':" +
"{supportedFields: {person: ['id', {name: 'familyName'}]}}" +
"}}}");
containerConfig = new JsonContainerConfig(config, Expressions.forTesting());
handler = new PersonHandler(personService, containerConfig);
registry = new DefaultHandlerRegistry(null, converter,
new HandlerExecutionListener.NoOpHandler());
registry.addHandlers(ImmutableSet.<Object>of(handler));
}