@Test
public void testCreateInjectedSoyTemplateRecord() {

	Set<String> restrictedVariables = new HashSet<>();
	restrictedVariables.add("restrictedKey");
	SoyContextImpl soyContextImpl = new SoyContextImpl(
		Collections.emptyMap(), restrictedVariables);
	soyContextImpl.putInjectedData("key", "value");
	soyContextImpl.putInjectedData("restrictedKey", "restrictedValue");
	SoyTemplateRecord soyTemplateRecord =
		soyContextImpl.createInjectedSoyTemplateRecord();
	Assert.assertEquals("value", soyTemplateRecord.get("key"));
	Assert.assertNull(soyTemplateRecord.get("restrictedKey"));
}