### Question:
CollisionConfig { public Collision getCollision(String name) { if (collisions.containsKey(name)) { return collisions.get(name); } throw new LionEngineException(ERROR_COLLISION_NOT_FOUND + name); } CollisionConfig(Map<String, Collision> collisions); static CollisionConfig imports(Configurer configurer); static CollisionConfig imports(Xml root); static Collision createCollision(XmlReader node); static void exports(Xml root, Collision collision); Collision getCollision(String name); Collection<Collision> getCollisions(); static final String NODE_COLLISIONS; static final String NODE_COLLISION; static final String ATT_NAME; static final String ATT_OFFSETX; static final String ATT_OFFSETY; static final String ATT_WIDTH; static final String ATT_HEIGHT; static final String ATT_MIRROR; }### Answer:
@Test void testGetUnknownCollision() { final CollisionConfig config = new CollisionConfig(new HashMap<>()); assertThrows(() -> config.getCollision("void"), CollisionConfig.ERROR_COLLISION_NOT_FOUND + "void"); }