void () { final GenericDomValue<String> element = createElement("<a><cached-value/></a>", MyElement.class).getCachedValue(); assertEquals(0, ((MyConverter) element.getConverter()).fromStringCalls); assertEquals("", element.getValue()); assertEquals(1, ((MyConverter) element.getConverter()).fromStringCalls); assertEquals("", element.getValue()); assertEquals(1, ((MyConverter) element.getConverter()).fromStringCalls); element.setValue("1"); assertEquals(1, ((MyConverter) element.getConverter()).fromStringCalls); assertEquals("1", element.getValue()); assertEquals(2, ((MyConverter) element.getConverter()).fromStringCalls); }