SoyContextImpl implements SoyContext { @Override public SoyContext putInjectedData(String key, Object value) { Map<String, Object> injectedData = (Map<String, Object>)_map.get( SoyTemplateConstants.INJECTED_DATA); if (injectedData == null) { injectedData = new HashMap<>(); _map.put(SoyTemplateConstants.INJECTED_DATA, injectedData); } injectedData.put(key, value); return this; } SoyContextImpl();  SoyContextImpl(Map<String, Object> context);  SoyContextImpl(
		Map<String, Object> context, Set<String> restrictedVariables); @Override void clear(); @Override SoyContext clearInjectedData(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); SoyTemplateRecord createInjectedSoyTemplateRecord(); SoyTemplateRecord createSoyTemplateRecord(); @Override Set<Entry<String, Object>> entrySet(); @Override Object get(Object key); Object getInjectedData(String key); @Override boolean isEmpty(); @Override Set<String> keySet(); @Override SoyContext put(String key, Object value); @Override SoyContext put(
		String key, UnsafeSupplier<?, Exception> unsafeSupplier); @Override void putAll(Map<? extends String, ?> m); @Override SoyContext putHTML(String key, String value); @Override SoyContext putInjectedData(String key, Object value); @Override Object remove(Object key); @Override SoyContext removeInjectedData(String key); @Override int size(); @Override Collection<Object> values();  }
@Test public void testPutInjectedData() { SoyContextImpl soyContextImpl = new SoyContextImpl(); soyContextImpl.putInjectedData("injectedKey", "injectedValue"); Map<String, Object> injectedData = (Map<String, Object>)soyContextImpl.get( SoyTemplateConstants.INJECTED_DATA); Assert.assertEquals(injectedData.toString(), 1, injectedData.size()); Assert.assertEquals("injectedValue", injectedData.get("injectedKey")); }