@Before
public void setUp() throws Exception {
processor = new MyTemplateProcessor();
processor.context = new TemplateContext(gadget, Collections.<String, JSONObject>emptyMap());
Injector injector = Guice.createInjector(new ParseModule(), new PropertiesModule());
documentProvider = injector.getInstance(DOMImplementation.class);
parser = injector.getInstance(SocialMarkupHtmlParser.class);
featureRegistry = mock(GadgetFeatureRegistry.class);
handler = new FlashTagHandler(new BeanJsonConverter(injector), featureRegistry,
"http://example.org/ns");