SoyContextImpl implements SoyContext { @Override public void clear() { _map.clear(); } 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 testClear() { SoyContextImpl soyContextImpl = new SoyContextImpl(); soyContextImpl.put("key", "value"); soyContextImpl.putInjectedData("injectedKey", "injectedValue"); soyContextImpl.clear(); Assert.assertEquals(0, soyContextImpl.size()); Assert.assertEquals(null, soyContextImpl.get("key")); Assert.assertEquals( null, soyContextImpl.getInjectedData("injectedKey")); }