void () { final MyElement element = createElement("<a>" + "<my-generic-value>abc</my-generic-value>" + "<my-foo-generic-value>abc</my-foo-generic-value>"); assertEquals("bar", element.getMyGenericValue().getValue()); assertEquals("foo", element.getMyFooGenericValue().getValue()); }