### Question:
AnimationConfig { public Animation getAnimation(String name) { final Animation animation = animations.get(name); if (animation == null) { throw new LionEngineException(ERROR_NOT_FOUND + name); } return animation; } AnimationConfig(Map<String, Animation> animations); static AnimationConfig imports(Configurer configurer); static AnimationConfig imports(Xml root); static Animation createAnimation(XmlReader node); static void exports(Xml root, Animation animation); Animation getAnimation(String name); boolean hasAnimation(String name); Collection<Animation> getAnimations(); static final String NODE_ANIMATIONS; static final String NODE_ANIMATION; static final String ANIMATION_NAME; static final String ANIMATION_START; static final String ANIMATION_END; static final String ANIMATION_SPEED; static final String ANIMATION_REVERSED; static final String ANIMATION_REPEAT; }### Answer:
@Test void testGetUnknownAnimation() { final AnimationConfig config = new AnimationConfig(new HashMap<>()); assertThrows(() -> config.getAnimation("void"), AnimationConfig.ERROR_NOT_FOUND + "void"); }