### Question:
World { public void addEntity(Entity entity) { entities.add(entity); } World(); void run(); void stop(); void addEntity(Entity entity);  }### Answer:
@Test public void testAddEntity() { var entity = new Skeleton(1); world.addEntity(entity); Assert.assertEquals(entity, world.entities.get(0)); }