@Test
public void testProcessTemplateWithInjectedData() throws Exception {

	SoyTemplate soyTemplate = _soyTestHelper.getSoyTemplate("ijdata.soy");
	soyTemplate.put("namespace", "soy.test.ijdata");
	soyTemplate.put(
		SoyTemplateConstants.INJECTED_DATA,
		HashMapBuilder.<String, Object>put(
			"hasData", true
		).build());
	UnsyncStringWriter unsyncStringWriter = new UnsyncStringWriter();
	soyTemplate.processTemplate(unsyncStringWriter);
	Assert.assertEquals(
		"Injected Data: true", unsyncStringWriter.toString());
}