void () { assertTrue(createElement("<a/>").getNameStrategy() instanceof HyphenNameStrategy); final AnotherElement anotherElement = createElement("<a/>", AnotherElement.class); assertTrue(anotherElement.getNameStrategy() instanceof JavaNameStrategy); assertTrue(anotherElement.getChild().getNameStrategy() instanceof JavaNameStrategy); }